31.08.2011, 18:39
Quote:
But I want to save it in the .ini file using y_ini
eg. Код:
Name=Tigerbeast11 Password=HasedPassword Cash=200 Hours Online=2 Minutes Online=34 |
And then modify this:
pawn Код:
public OnPlayerLogin(playerid, password) //or connect.
{
//If success:
//Load the userfile...
PlayerSeconds[playerid] = PlayerInfo[playerid][pSeconds]; //According to your variable.
return true;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerInfo[playerid][pSeconds] = PlayerSeconds[playerid];
//Then save the userfile.
return true;
}