17.01.2010, 15:07
Thanks but the problem is that i am using the fuction that way;
I don't think i can do this with your function.
pawn Код:
for(new slot = 0; slot < 13; slot++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, slot, wep, ammo);
if(wep != 0 && ammo != 0)
{
if(PlayerInfo[playerid][pGun1] == 0) { PlayerInfo[playerid][pGun1] = wep; PlayerInfo[playerid][pAmmo1] = ammo; }
}
}