24.02.2013, 10:44
Hello, I'm working on a weapon saving system. Everything goes fine when you register, the weapon id is saved into the file as 0, and I even tried putting it to a 2 and it also saved. When it loads however it won't get the weapon ID, check this piece of code.
And this is the GivePlayerWeapon function that is triggered when you spawn:
The Ammoslot 1 is also not working.
Код:
PlayerInfo[playerid][Weaponslot1] = (dUserINT(pName(playerid)).("Weaponslot1"));
Код:
GivePlayerWeapon(playerid, PlayerInfo[playerid][Weaponslot1], PlayerInfo[playerid][Ammoslot1]);