Penality Points
#4

Use the include Dini with this code:

PHP код:
#include <Dini>

public OnGameModeInit()
{
    if(!
fexist("Save.txt")) { dini_Create("Save.txt"); }
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    new 
n[24], name[24];
    
GetPlayerName(playeridn24);
    
format(name24"%s"n);
    if(
dini_Isset("Save.txt"name)) { PlayerInfo[playerid][pPP] = dini_Int("Save.txt"name); }
    return 
1;
}

public 
OnPlayerDisconnect(playeridreason)
{
    new 
n[24], name[24];
    
GetPlayerName(playeridn24);
    
format(name24"%s"n);
    
dini_IntSet("Save.txt"namePlayerInfo[playerid][pPP]);
    return 
1;

Reply


Messages In This Thread
Penality Points - by dariusmare - 05.07.2011, 07:38
Re: Penality Points - by MadeMan - 05.07.2011, 10:09
Re: Penality Points - by dariusmare - 05.07.2011, 11:44
Re: Penality Points - by Shadoww5 - 05.07.2011, 12:20
Re: Penality Points - by dariusmare - 05.07.2011, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)