y_ini
#1

Well I didn't understand how can I load something from a file.
I made it so OnPlayerDisconnect it saves the player's score and it works fine.
But how can I do that OnPlayerConnect it takes the score's integer from the INI file?

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new
        
fileToWrite[] = "players.INC",
         
INI:iniFile INI_Open(fileToWrite), name[MAX_PLAYER_NAME], score GetPlayerScore(playerid);
    
GetPlayerName(playeridnamesizeof(name));
     
INI_SetTag(iniFile"Players Score");
      
INI_WriteInt(iniFilenamescore);
       
INI_Close(iniFile);
    return 
1;

Reply


Messages In This Thread
y_ini - by Tomer!.$ - 19.04.2012, 17:23
Re: y_ini - by Jonny5 - 19.04.2012, 17:54
Re : y_ini - by Tomer!.$ - 20.04.2012, 08:27
Re : y_ini - by Tomer!.$ - 20.04.2012, 10:02
Re: y_ini - by ReneG - 20.04.2012, 10:30
Re : y_ini - by Tomer!.$ - 20.04.2012, 10:34
Re: y_ini - by ReneG - 20.04.2012, 10:38
Re : y_ini - by Tomer!.$ - 20.04.2012, 10:45
Re: y_ini - by ReneG - 20.04.2012, 10:51
Re : y_ini - by Tomer!.$ - 20.04.2012, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)