PlayerInfo problem
#1

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.

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);
Can you help me? Thanks
Reply
#2

Are you using fclose?

Look this example https://sampwiki.blast.hk/wiki/Fwrite
Reply
#3

Yeah.
Reply
#4

Helpp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)