09.04.2014, 11:16
After looking at the code for a bit, I understood that the returns you used were the weaponslot in game.
The cases are the gunID's, if I'm right.
What I don't understand is why do you put a return -1 on the end?
I'm going to test that code.
Thanks in advance.
EDIT:
I get this error:
This are the two lines:
The cases are the gunID's, if I'm right.
What I don't understand is why do you put a return -1 on the end?
I'm going to test that code.
Thanks in advance.
EDIT:
I get this error:
pawn Код:
(236) : error 017: undefined symbol "weapons"
(255) : error 017: undefined symbol "weapons"
pawn Код:
(236) PlayerInfo[playerid][GetWeaponSlot(weapons)] = weapons;
(255) INI_WriteInt(File,"Weapons", PlayerInfo[playerid][GetWeaponSlot(weapons)]);