Quote:
|
Originally Posted by Compton's Eazy E
Quote:
|
Originally Posted by Joe Staff
You're using the function wrong.
pawn Код:
new ammo, gun; GetPlayerWeaponData(playerid,0,gun,ammo); printf("%d,%d",gun,ammo);
This will print (to the console) the gun and ammo of slot 0 for 'playerid'
|
Ah, It's returning -1 for ammo, So it couldnt get the ammo correct? And the gun is just returning 1.
|
slot 0 is your hands isnt it? -1 is your hands as a weapon and -1 ammo would be correct