09.11.2014, 08:28
But when I do that, I gets this error for the /me, /do and /w command.
These are the errors
So, what should I do?
Quote:
|
// /me if (strcmp(cmdtext, "/me ", true, 4) == 0) { if(!cmdtext[4])return SendClientMessage(playerid, COLOR_ORANGE, "Correct Usage: /me [action]"); if(muted > 0) return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command when you are muted."); new actionme[128]; format (actionme, sizeof(actionme), "*%s %s", playername, cmdtext[4]); SendLocalMessage(playerid, COLOR_PINK, 7, actionme); return 1; } // /do if (strcmp(cmdtext,"/do ", true, 4) == 0) { if(!cmdtext[4])return SendClientMessage(playerid, COLOR_ORANGE, "Correct Usage: /do [message]"); if(muted > 0) return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command when you are muted."); new actiondo[128]; format (actiondo, sizeof(actiondo), "*%s((%s))", cmdtext[4], playername); SendLocalMessage(playerid,COLOR_PINK,7, actiondo); return 1; } // /do if (strcmp(cmdtext, "/w ", true, 3) == 0) { if(!cmdtext[3])return SendClientMessage(playerid, COLOR_ORANGE, "Correct Usage: /w [message]"); if(muted > 0) return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command when you are muted."); new wmessage[128]; format (wmessage, sizeof(wmessage), "(Local) %s(%d): %s", playername, playerid, cmdtext[3]); SendLocalMessage(playerid, COLOR_YELLOW, 7, wmessage); return 1; } |
Quote:
|
E:\My Server\gamemodes\SARCR.pwn(922) : error 033: array must be indexed (variable "muted") E:\My Server\gamemodes\SARCR.pwn(933) : error 033: array must be indexed (variable "muted") E:\My Server\gamemodes\SARCR.pwn(944) : error 033: array must be indexed (variable "muted") |

