30.12.2010, 02:59
Hey guys, for some reason my login stopped working, and i dont have backups so cant go back to backup for code. When a player logged in, he would be spawned at his last coords, but now players goes to 0.0 which is annoying, i cant find out my problem. Heres my code:
I have a feeling i did something wrong, i would appreciate anyones help, thanks
pawn Код:
PlayerInfo[playerid][X1] = dini_Float(file, "Posx");
PlayerInfo[playerid][Y1] = dini_Float(file, "Posy");
PlayerInfo[playerid][Z1] = dini_Float(file, "Posz");
SetPlayerPos(playerid, PlayerInfo[playerid][X1],PlayerInfo[playerid][Y1],PlayerInfo[playerid][Z1]);
SetSpawnInfo(playerid, PlayerInfo[playerid][pFaction], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][X1], PlayerInfo[playerid][Y1], PlayerInfo[playerid][Z1], 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);