SetSpawnInfo is not working correctly?
#1

So here's the thing, i have a register system made with dini.
Once a player logs in, he gets spawned right away.
But for some odd reason, the server doesn't set the player's skin correctly, it just gets set to 0.

Here's the code:
Код:
		if(Stats[playerid][Spawned] == true)
		{
			SetSpawnInfo(playerid, 0, Stats[playerid][Skin], Float:dini_Float(file,"X"),Float:dini_Float(file,"Y"),Float:dini_Float(file,"Z"), 0, 0, 0, 0, 0, 0, 0 );
			SpawnPlayer(playerid);
			SetPlayerInterior(playerid,Stats[playerid][Interior]);
			GivePlayerMoney(playerid, Stats[playerid][Money]);
			SetPlayerColor(playerid, WHITE);
			SetPlayerSkin(playerid, Stats[playerid][Skin]);
		}
Can anyone please help?
Reply


Messages In This Thread
SetSpawnInfo is not working correctly? - by Shetch - 16.02.2012, 22:30
Re: SetSpawnInfo is not working correctly? - by Twisted_Insane - 16.02.2012, 22:35
Re: SetSpawnInfo is not working correctly? - by Shetch - 16.02.2012, 22:39
Re: SetSpawnInfo is not working correctly? - by Twisted_Insane - 16.02.2012, 22:41
Re: SetSpawnInfo is not working correctly? - by Shetch - 16.02.2012, 22:42
Re: SetSpawnInfo is not working correctly? - by Tanush123 - 16.02.2012, 22:43
Re: SetSpawnInfo is not working correctly? - by Shetch - 16.02.2012, 22:45
Re: SetSpawnInfo is not working correctly? - by Toreno - 16.02.2012, 22:46
Re: SetSpawnInfo is not working correctly? - by Shetch - 16.02.2012, 22:48
Re: SetSpawnInfo is not working correctly? - by Tanush123 - 16.02.2012, 22:54

Forum Jump:


Users browsing this thread: 3 Guest(s)