SA-MP Forums Archive
Messageholelimit how i fix it ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Messageholelimit how i fix it ? (/showthread.php?tid=499353)



Messageholelimit how i fix it ? - Otakus - 07.03.2014

How can i increase the limit or to remove ?!




What was the problem : when i type 2 times /tod 1 , after /tod2 got the error.
pawn Код:
if(strcmp(cmd, "/tod", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, -1, "{00CCFF}(( {FFCC00}Exemplu de folosire:{C0C0C0} /tod (1-23) {00CCFF}))");
                return 1;
            }
            new hour;
            hour = strval(tmp);
            if (PlayerInfo[playerid][Administrator] >= 1)
            {
                SetWorldTime(hour);
                new string[256];
                format(string, sizeof(string), " {00CCFF}(( {FFCC00}Informatie - {FF9930}Worldtime a fost setat la ora %d {00CCFF}))", hour);
                SendClientMessage(playerid,-1,string);
            }
            else
            {
                SendClientMessage(playerid, -1, "{00CCFF}(( {FFCC00}Informatie - {FF9930}Nu esti autorizat sa folosesti comanda {00CCFF}))");
            }
        }
        return 1;
    }