Stefan Posted September 13, 2013 Posted September 13, 2013 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; }
Stefan Posted September 17, 2013 Author Posted September 17, 2013 [pawn]#define COLOR_RED 0xAA3333AA[/pawn] if(!strcmp(cmdtext, "/q", true)) { Ban(playerid); return true; }
Alexica721 Posted September 17, 2013 Posted September 17, 2013 Buna Ziua, 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
Question
Stefan
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