27.06.2011, 13:20
Hello, I am trying to make so your position saves when you exit, So when you log back in. You will spawn at the same position.
This is my pInfo code
There is no errors/warnings here.
OnPlayerDisconnect:
This is where i get the warnings
This is what i get for warnings,
But i dont understand it. It works fine on all the other codes.
It works fine on my login & register dialog.
It looks like this:
I dont understand whats wrong!
This is my pInfo code
pawn Код:
enum pInfo
{
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
OnPlayerDisconnect:
pawn Код:
dini_IntSet(file, "xCord",PlayerInfo[playerid][pPos_x]);
dini_IntSet(file, "yCord",PlayerInfo[playerid][pPos_y]);
dini_IntSet(file, "zCord",PlayerInfo[playerid][pPos_z]);
Код:
warning 213: tag mismatch warning 213: tag mismatch warning 213: tag mismatch
But i dont understand it. It works fine on all the other codes.
It works fine on my login & register dialog.
It looks like this:
pawn Код:
PlayerInfo[playerid][pPos_x] = dini_Int(file, "xCord");
PlayerInfo[playerid][pPos_y] = dini_Int(file, "yCord");
PlayerInfo[playerid][pPos_z] = dini_Int(file, "zCord");