Need some help
#4

Why don't you rather try around? ;

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
By that you now know your loop is completely wrong.

pawn Код:
for(new slot; slot < 13; slot++) // loops until 0 reaches 12.
Also, instead of doing :

pawn Код:
PlayerInfo[playerid][pWeapon1],2 ,3 etc.
Use the power of array's and do :

pawn Код:
enum pInfo
{
     pWeapon[12],
}

It would then look like :

PlayerInfo[playerid][pWeapon][0], PlayerInfo[playerid][pWeapon][1]
Reply


Messages In This Thread
Need some help - by SkizzoTrick - 01.03.2011, 17:18
Re: Need some help - by Vince - 01.03.2011, 17:48
Re: Need some help - by SkizzoTrick - 01.03.2011, 17:58
Re: Need some help - by Cameltoe - 02.03.2011, 15:59

Forum Jump:


Users browsing this thread: 5 Guest(s)