07.08.2014, 14:58
Hi all...
Why this pInfo won't save in my .ini?..
In the .ini file appears right, but if I relog, it disappears... Same thing if I restart the server.
Thanks in advance.
Can you help me? Thanks
Why this pInfo won't save in my .ini?..
In the .ini file appears right, but if I relog, it disappears... Same thing if I restart the server.
Thanks in advance.
pawn Код:
enum pInfo
{
//other things
pNomePersonaggio1[64],
//other things
}
//When it writes on the file on DialogResponse
strcpy(PlayerInfo[playerid][pNomePersonaggio1], inputtext, 64);
OnPlayerSave(playerid);
//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);