30.12.2010, 15:10
Another question, why isnt my position being written to my char file at all, disconnect code:
Connect Code:
Spawns player at 0.0 and doesnt show the pos in the user file.
pawn Код:
dini_FloatSet(file, "pX",PlayerInfo[playerid][X1]);
dini_FloatSet(file, "pY",PlayerInfo[playerid][Y1]);
dini_FloatSet(file, "pX",PlayerInfo[playerid][Z1]);
pawn Код:
PlayerInfo[playerid][X1] = dini_Float(file, "pX");
PlayerInfo[playerid][Y1] = dini_Float(file, "pY");
PlayerInfo[playerid][Z1] = dini_Float(file, "pZ");
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);