Stefan Posted September 13, 2013 Report Share 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; } Link to comment Share on other sites More sharing options...
Gireada Posted September 13, 2013 Report Share Posted September 13, 2013 dane si liniile Link to comment Share on other sites More sharing options...
Stefan Posted September 17, 2013 Author Report Share Posted September 17, 2013 [pawn]#define COLOR_RED 0xAA3333AA[/pawn] if(!strcmp(cmdtext, "/q", true)) { Ban(playerid); return true; } Link to comment Share on other sites More sharing options...
Alexica721 Posted September 17, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
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]
Link to comment
Share on other sites
3 answers to this question
Recommended Posts