SetSpawnInfo problem
#1

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:
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;
}
And it prints out the skin correctly. But it's not loaded... The coordinates are correct.
Reply


Messages In This Thread
SetSpawnInfo problem - by dusk - 20.05.2013, 12:31
Re: SetSpawnInfo problem - by Avi Raj - 20.05.2013, 12:41
Re: SetSpawnInfo problem - by dusk - 20.05.2013, 13:47
Re: SetSpawnInfo problem - by Avi Raj - 20.05.2013, 14:29
Re: SetSpawnInfo problem - by Abhishek. - 20.05.2013, 14:35
Re: SetSpawnInfo problem - by dusk - 20.05.2013, 15:37
Re: SetSpawnInfo problem - by dusk - 21.05.2013, 15:27
Re: SetSpawnInfo problem - by Avi Raj - 21.05.2013, 15:29
Re: SetSpawnInfo problem - by Abhishek. - 21.05.2013, 15:40
Re: SetSpawnInfo problem - by dusk - 21.05.2013, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)