PHP код:
if(GetPVarInt(playerid, "GunLoading"))
{
for ( new i ; i < 13 ; i ++ )
{
if ( !PlayerInfo [ playerid ] [ pGun ] [ i ] || !PlayerInfo [ playerid ] [ pAmmo ] [ i ] ) continue ;
GivePlayerWeaponAC ( playerid, PlayerInfo [ playerid ] [ pGun ] [ i ], PlayerInfo [ playerid ] [ pAmmo ] [ i ] ) ;
}
new gun_string[56], ammo_string[56];
format ( gun_string, 56, "0,0,0,0,0,0,0,0,0,0,0,0,0");
format ( ammo_string, 56, "0,0,0,0,0,0,0,0,0,0,0,0,0");
string="";
mysql_format(connects, string, 256, "UPDATE `accounts` SET `p_guns` = '%s',`p_ammo` = '%s' WHERE `id` = '%i' LIMIT 1", gun_string, ammo_string, PlayerInfo [ playerid ] [ pID ] ) ;
mysql_empty(connects, string);
DeletePVar(playerid, "GunLoading");
}