Empty Slot - GetPlayerWeaponData
#1

I've a n00b question.. but i don't really know so

Let's make this example.

Код:
new weap, ammo;
GetPlayerWeaponData(playerid, 5, weap, ammo);
If "playerid" guy doesn't have any weapon in that slot.. in variable "weap" what returns? 0, -1 or even different ?

Thanks.
Reply
#2

if weap == 0 then its either fists if its slot 0 or no weapon
Reply
#3

Quote:
Originally Posted by cessil
if weap == 0 then its either fists if its slot 0 or no weapon
So it's 0.

OK Thanks
Reply


Forum Jump:


Users browsing this thread: