06.03.2011, 08:44
Hello,When I compiling I am getting erros.
my anti weapon script:
And I am getting these errors:
Any help?
my anti weapon script:
Code:
// On the top new minigun[MAX_PLAYERS]; forward WeaponCheck( ); // Then in weapon check public WeaponCheck( ) { for(new i=0; i<MAX_PLAYERS; i++){ if(GetPlayerWeapon(i) == 38 && minigun[playerid]=0) { new pname[200]; new string[200]; GetPlayerName(i, pname, sizeof(pname)); format(string, sizeof(string), "-Server- %s has been banned from this server(Reason: Minigun hack)", pname); SendClientMessageToAll(COLOR_RED,string); Ban(i); } } } // Then if player gets some where minigun in script I additing "minigun[playerid]=1" .
Code:
C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(780) : error 017: undefined symbol "playerid" C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(780) : warning 215: expression has no effect C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(780) : error 001: expected token: ";", but found ")" C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(780) : error 029: invalid expression, assumed zero C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(780) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.