16.02.2012, 22:30
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:
Can anyone please help?
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]);
}


