17.07.2012, 18:46
I have tired everything I know and I still cannot figure out why I get these error messages. Hopefully someone else knows and can explain it to me?? Thanks in advance.
Error Messages:
Code:
Error Messages:
Код:
C:\Users\Owner\Desktop\NGRP\gamemodes\NGRP.pwn(1341) : error 029: invalid expression, assumed zero C:\Users\Owner\Desktop\NGRP\gamemodes\NGRP.pwn(1341) : warning 215: expression has no effect C:\Users\Owner\Desktop\NGRP\gamemodes\NGRP.pwn(1341) : error 001: expected token: ";", but found ")" C:\Users\Owner\Desktop\NGRP\gamemodes\NGRP.pwn(1341) : error 029: invalid expression, assumed zero C:\Users\Owner\Desktop\NGRP\gamemodes\NGRP.pwn(1341) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
new i = 0; while(i < sizeof(arrForbiddenNames)) if(strcmp(arrForbiddenNames[i++], GetPlayerNameExt(playerid), true) == 0) { SetPlayerName(playerid, "InvalidNick"); SendClientMessage(playerid, COLOR_RED, "You have been kicked & logged for using a forbidden username."); Kick(playerid); return 0; } return 1; }