08.08.2014, 17:01
Hi all...
Why this variable restart?
That's a name of a character system, here's the code.
If I slog and Relog, it works, but if I restart or stop the server, that restarts.
Why this variable restart?
That's a name of a character system, here's the code.
pawn Код:
//When it saves
strcpy(PlayerInfo[playerid][pNomePersonaggio1], inputtext, 64);
OnPlayerSave(playerid);
//OnPlayerConnect
PlayerInfo[playerid][pNomePersonaggio1] = PlayerInfo[playerid][pNomePersonaggio1];
PlayerInfo[playerid][pNomePersonaggio2] = PlayerInfo[playerid][pNomePersonaggio2];
PlayerInfo[playerid][pNomePersonaggio3] = PlayerInfo[playerid][pNomePersonaggio3];
//OnPlayerRegister
format(var, 32, "NomePersonaggio1=%s\n",PlayerInfo[playerid][pNomePersonaggio1]);fwrite(hFile, var);
//OnPlayerSave
format(var, 32, "NomePersonaggio1=%s\n",PlayerInfo[playerid][pNomePersonaggio1]);fwrite(hFile, var);

