/ahelp shows nothing
#7

pawn Код:
if(strcmp(cmd, "/askadmin", true) == 0 || strcmp(cmd, "/ahelp", true) == 0)
{
    if(!strlen(cmdtext[8])) return SendClientMessage(playerid, 0xFF0000AA, "Use /ahelp [message]");
    new str[128];
    if((getseconds()-LastReport[playerid]) < 30)
    {
        format(str, 128, "You have to wait %d seconds before you can send a new help message!", (30-(gettime()-LastReport[playerid])));
        SendClientMessage(playerid, 0xFF0000AA, str); return 1;
    }
    format(str, 128, "[ASKADMIN] Sender ID: %d. Message: %s", playerid, cmdtext[8]);
    for(new i; i<MAX_PLAYERS; i++)
    {
        AdministratorMessage(COLOR_ADMINCMD, string,1);
        return 1;
    }
    SendClientMessage(playerid, 0x00FF00AA, "Help sent to online admins!");
    LastReport[playerid] = getseconds();
    return 1;
}

stock getseconds()
{
    new _h, _m, _s;
    gettime(_h, _m, _s);
    return s;
}
Try this. I haven't tested it, but I've simply made a "getseconds" function that does the same as what you were attempting.
Reply


Messages In This Thread
/ahelp shows nothing - by FabianoC - 05.12.2011, 15:56
Re: /ahelp shows nothing - by Speed - 05.12.2011, 16:08
Re: /ahelp shows nothing - by FabianoC - 05.12.2011, 16:14
Re: /ahelp shows nothing - by Speed - 05.12.2011, 16:22
Re: /ahelp shows nothing - by Ash. - 05.12.2011, 16:32
Re: /ahelp shows nothing - by FabianoC - 05.12.2011, 17:27
Re: /ahelp shows nothing - by Ash. - 05.12.2011, 17:40
Respuesta: /ahelp shows nothing - by OPremium - 05.12.2011, 17:42
Re: Respuesta: /ahelp shows nothing - by Ash. - 05.12.2011, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)