20.05.2013, 12:31
The problem is that it doesn't work for me. It doesn't set the right skin, always 0. I send a query OnPlayerConnect and SpawnPlayer as soon as he logins.
Here's the loading:
And it prints out the skin correctly. But it's not loaded... The coordinates are correct.
Here's the loading:
pawn Код:
forward OnSpawnCheck(playerid);
public OnSpawnCheck(playerid)
{
new tmp[32],Float:Pos[3],skin;
cache_get_row(0,0,tmp,dbHandle); skin=strval(tmp);
cache_get_row(0,1,tmp,dbHandle); Pos[0]=floatstr(tmp);
cache_get_row(0,2,tmp,dbHandle); Pos[1]=floatstr(tmp);
cache_get_row(0,3,tmp,dbHandle); Pos[2]=floatstr(tmp);
printf("%d",skin);
SetSpawnInfo(playerid,0,skin,Pos[0],Pos[1],Pos[2],0,0,0,0,0,0,0);
return 1;
}