Jump to content

Question

Posted

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;     }

3 answers to this question

Recommended Posts

Posted

[pawn]#define COLOR_RED 0xAA3333AA[/pawn]

post-9713-14074453214361.jpg

post-9713-14074453214461.jpg

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

Posted

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.