Server:Unkown Command
#9

oh god...

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
INI:File INI_Open(UserPath(playerid));
    
INI_SetTag(File,"data");
    
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    
INI_WriteInt(File,"IGRD"PlayerInfo[playerid][pIGRD]);
    
INI_WriteInt(File,"BAD"PlayerInfo[playerid][pBAD]);
    
INI_WriteInt(File,"ARD"PlayerInfo[playerid][pARD]);
    
INI_WriteInt(File,"FCMD"PlayerInfo[playerid][pFCMD]);
    
INI_WriteInt(File,"FMD"PlayerInfo[playerid][pFMD]);
    
INI_Close(File);

pawn Код:
public OnPlayerConnect(playerid)
{
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s has join LG:RP", name);
    SendClientMessageToAll(playerid, string);
    reporter[playerid] = -1;[PHP][/PHP]
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Registering...","Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
Код:
[data]
Deaths = 0
Kills = 0
Admin = 0
Cash = 0
Password = 351142768
FMD = 0
FCMD = 0
ARD = 0
BAD = 0
IGRD = 1
Now i can use pIGRD or not ?!
Reply


Messages In This Thread
Server:Unkown Command - by Eymeric69 - 06.07.2016, 14:02
Re: Server:Unkown Command - by Stinged - 06.07.2016, 14:16
Re: Server:Unkown Command - by Eymeric69 - 06.07.2016, 14:23
Re: Server:Unkown Command - by Mencent - 06.07.2016, 14:27
Re: Server:Unkown Command - by Eymeric69 - 06.07.2016, 14:36
Re: Server:Unkown Command - by Stinged - 06.07.2016, 14:45
Re: Server:Unkown Command - by Eymeric69 - 06.07.2016, 14:48
Re: Server:Unkown Command - by Vince - 06.07.2016, 15:11
Re: Server:Unkown Command - by Eymeric69 - 06.07.2016, 15:19
Re: Server:Unkown Command - by Mencent - 06.07.2016, 15:29

Forum Jump:


Users browsing this thread: 2 Guest(s)