18.03.2013, 14:07
Good day. I have a problem when making player spawn when he loggs in. The problem is that sometimes SetSpawnInfo sets player skin as CJ, and sometimes as player's real skin. So that makes player spawn with CJ spawn sometimes. Maybe someone knows how to fix that one?
pawn Код:
forward OnPlayerDataLoad(playerid);
public OnPlayerDataLoad(playerid)
{
<...>
new userSkin;
cache_get_row(0, 9, Result); SetPlayerSkin(playerid, strval(Result));
userSkin = strval(Result);
<....>
SetSpawnInfo(playerid, 0, userSkin, userPos[0], userPos[1], userPos[2], 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer (playerid);
return (true);
}