02.03.2011, 15:59
Why don't you rather try around? ;
Vince stated :
By that you now know your loop is completely wrong.
Also, instead of doing :
Use the power of array's and do :
Vince stated :
Quote:
Originally Posted by Vince
For your information: There are 13 weapon slots (0 through 12).
For example: An assault rifle (AK47, M4) will ALWAYS be in slot 5. Refer to the weapon list to find out in which weapon is stored in which slot. https://sampwiki.blast.hk/wiki/Weapons |
pawn Код:
for(new slot; slot < 13; slot++) // loops until 0 reaches 12.
pawn Код:
PlayerInfo[playerid][pWeapon1],2 ,3 etc.
pawn Код:
enum pInfo
{
pWeapon[12],
}
It would then look like :
PlayerInfo[playerid][pWeapon][0], PlayerInfo[playerid][pWeapon][1]