Weapon saving
#1

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.

Код:
 PlayerInfo[playerid][Weaponslot1] = (dUserINT(pName(playerid)).("Weaponslot1"));
And this is the GivePlayerWeapon function that is triggered when you spawn:
Код:
 GivePlayerWeapon(playerid, PlayerInfo[playerid][Weaponslot1], PlayerInfo[playerid][Ammoslot1]);
The Ammoslot 1 is also not working.
Reply


Messages In This Thread
Weapon saving - by Colossus874 - 24.02.2013, 10:44
Re: Weapon saving - by ReVo_ - 24.02.2013, 11:00
Re: Weapon saving - by Finn - 24.02.2013, 11:03
Re: Weapon saving - by Colossus874 - 24.02.2013, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)