SA-MP Forums Archive
Weapon save and load? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weapon save and load? (/showthread.php?tid=261818)



Weapon save and load? - xOFxK1LLER - 15.06.2011

Hey guys

I try to save guns in my player file. But it only saves the gun. When i enter the game it doesen't load the gun..

save:

Код:
  new waffe, ammo;
  	   GetPlayerWeaponData(playerid,2,waffe,ammo);
	    dini_IntSet(Spielerdatei,"Wslot1",waffe);
	    dini_IntSet(Spielerdatei,"Mslot1",ammo);
Load:
Код:
GivePlayerWeapon(playerid, dini_Int(Spielerdatei, "Wslot1"),dini_Int(Spielerdatei,"Mslot1"));