SetSpawnInfo problem/bug
#1

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?
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)