SA-MP Forums Archive
SetSpawnInfo problem/bug - 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)
+--- Thread: SetSpawnInfo problem/bug (/showthread.php?tid=286454)



SetSpawnInfo problem/bug - Audiophr3ak - 28.09.2011

Greetings. I have a problem with OnPlayerRequestClass callback. Im using some parameters from the file and everything works fine, but weapon can't be given to a player. So it looks like:

SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Float(file, "X"), dini_Float(file, "Y"), dini_Float(file, "Z"), dini_Float(file, "A"), dini_Int(file, "Weap"), dini_Int(file, "Ammo"), 0, 0, 0, 0);

Is that a bug, or just my fault?


Re: SetSpawnInfo problem/bug - Jefff - 28.09.2011

Try
new Skin = dini_int...
new Float:X = dini_float
..
...
...
...
SetSpawnInfo(playerid,0,Skin,X,Y,Z,...);
or something wrong with weaopn in file


Re: SetSpawnInfo problem/bug - Audiophr3ak - 28.09.2011

I allready tried what u said, but it still won't work. Weapon and ammo is saving into the file correctly but not loading. It works only when i use GivePlayerWeapon at OnPlayerSpawn.