16.01.2016, 09:00
hi Guys i am making new mole CMD but i am facing some Errors-
And here is my CMD-
Anyone can help me in this?
Quote:
error 017: undefined symbol "cmd" error 017: undefined symbol "sendername" error 017: undefined symbol "sendername" error 029: invalid expression, assumed zero |
Quote:
CMD:mole(playerid, params[]) if(strcmp(cmd, "/mole", true) == 0 && PlayerInfo[playerid][pAdmin] >= 5) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[96]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [text]"); return 1; } format(string, sizeof(string), "SMS: %s, Sender: Server (555)",result); SendClientMessageToAll(COLOR_YELLOW, string); } return 1; } |