Jump to content
  • 0

Erori


Stefan

Question

am aceste erori

[pawn]warning 201: redefinition of constant/macro (symbol "COLOR_RED")

C:\Users\Stefan\Desktop\x\gamemodes\x.pwn(15300) : error 033: array must be indexed (variable "cmd")

C:\Users\Stefan\Desktop\x\gamemodes\x.pwn(15375) : error 033: array must be indexed (variable "tmp")[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Buna Ziua, :D

Incercati asta:


strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.