[AJUDA] Recorde Online
#4

vc criou a pasta GM e a pasta arquivos dentro da pasta GM?

pawn Код:
//comeзo do GM
#define RECORD_ONLINE     "/GM/arquivos/Record.cfg"
new Recorde;
new Online;

// No OnGameModeInit

    if(DOF2_FileExists(RECORD_ONLINE))
        Recorde = DOF2_GetInt(RECORD_ONLINE, "RecordeJogadores");
    else
    {
        DOF2_CreateFile(RECORD_ONLINE);
        DOF2_SetInt(RECORD_ONLINE, "RecordeJogadores", 0);
        Recorde = 0;
    }

// No OnPlayerDisconnect
    Online--;
// No OnPlayerConnect
    Online++;
    if(Online > Recorde)
    {
        Recorde = Online;
        DOF2_SetInt(RECORD_ONLINE, "RecordeJogadores", Recorde);
        format(string, sizeof(string),"O Recorde de jogadores online й: %d", Recorde);
        SendClientMessageToAll(COLOR_YELLOW,string);
    }
tinha mais um erro.
Reply


Messages In This Thread
[AJUDA] Recorde Online - by adminlucas - 12.11.2011, 17:04
Re: [AJUDA] Recorde Online - by Pharrel - 12.11.2011, 17:25
Re: [AJUDA] Recorde Online - by adminlucas - 12.11.2011, 17:49
Re: [AJUDA] Recorde Online - by Pharrel - 12.11.2011, 18:01
Re: [AJUDA] Recorde Online - by adminlucas - 12.11.2011, 18:08
Re: [AJUDA] Recorde Online - by Pharrel - 12.11.2011, 18:17
Re: [AJUDA] Recorde Online - by adminlucas - 12.11.2011, 18:23
Re: [AJUDA] Recorde Online - by adminlucas - 12.11.2011, 18:29
Re: [AJUDA] Recorde Online - by Pharrel - 12.11.2011, 18:31
Re: [AJUDA] Recorde Online - by Pertubado - 14.09.2012, 09:04

Forum Jump:


Users browsing this thread: 2 Guest(s)