GetPlayerWeaponData problem.
#10

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
Reply


Messages In This Thread
GetPlayerWeaponData problem. - by Eazy_Efolife - 08.01.2010, 21:15
Re: GetPlayerWeaponData problem. - by Joe Staff - 08.01.2010, 21:20
Re: GetPlayerWeaponData problem. - by Eazy_Efolife - 08.01.2010, 21:23
Re: GetPlayerWeaponData problem. - by Joe Staff - 08.01.2010, 21:25
Re: GetPlayerWeaponData problem. - by Eazy_Efolife - 08.01.2010, 21:25
Re: GetPlayerWeaponData problem. - by Joe Staff - 08.01.2010, 21:31
Re: GetPlayerWeaponData problem. - by Eazy_Efolife - 08.01.2010, 21:32
Re: GetPlayerWeaponData problem. - by Eazy_Efolife - 08.01.2010, 23:19
Re: GetPlayerWeaponData problem. - by Joe Staff - 08.01.2010, 23:31
Re: GetPlayerWeaponData problem. - by adsy - 08.01.2010, 23:33

Forum Jump:


Users browsing this thread: 1 Guest(s)