02.04.2011, 12:05
errors
command
Quote:
C:\Users\Mijn pc\Desktop\test one.pwn(89) : error 017: undefined symbol "cmd" C:\Users\Mijn pc\Desktop\test one.pwn(93) : error 017: undefined symbol "sendername" C:\Users\Mijn pc\Desktop\test one.pwn(93) : error 017: undefined symbol "sendername" C:\Users\Mijn pc\Desktop\test one.pwn(93) : error 029: invalid expression, assumed zero C:\Users\Mijn pc\Desktop\test one.pwn(93) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
Quote:
if(strcmp(cmd, "/b", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } GetPlayerName(playerid, sendername, MAX_PLAYER_NAME); for (new i = 0; i < MAX_PLAYER_NAME; i++) if (sendername[i] == '_') sendername[i] = ' '; 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: /b [local ooc chat]"); return 1; } ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); } return 1; } |