398...400
PHP код:
SetSpawnInfo(playerid, 0, 0, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], 359.2573, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
You set 2 times the pos of the player. I don't think it's the problem come from here.
Put some print to know where the problem come from ;
PHP код:
if(!strcmp(inputtext, PlayerInfo[playerid][pPassword], false))
{
TogglePlayerSpectating(playerid, 0);
INI_ParseFile(Path(playerid),"CheckAndLoad_%s",.bExtra = true, .extra = playerid);
print("Loaded player's data ...");
SendClientMessage(playerid,-1,"{FFFFFF}[{82CAFF}NCRP{FFFFFF}] Welcome back to NCRP, Enjoy your stay here!");
SetSpawnInfo(playerid, 0, 0, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], 359.2573, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
printf("X: %.2f - Y: %.2f - Z: %.2f", PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
SetPlayerInterior(playerid, PlayerInfo[playerid][pInterior]);
printf("Interior : %i", PlayerInfo[playerid][pInterior]);
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pWorld]);
printf("VirtualWorld : %i", PlayerInfo[playerid][pWorld]);
SetPlayerScore(playerid, PlayerInfo[playerid][pPlayerLevel]);
printf("Level : %i", PlayerInfo[playerid][pPlayerLevel]);
GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
printf("Money : %i", PlayerInfo[playerid][pMoney]);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
printf("Skin : %i", PlayerInfo[playerid][pSkin]);
}
Test it and post what the console return.