SA-MP Forums Archive
i have Error i need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i have Error i need help (/showthread.php?tid=542367)



compiling error - Medscripter - 18.10.2014

C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26589) : warning 217: loose indentation
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26589) : error 029: invalid expression, assumed zero
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26589) : error 017: undefined symbol "cmd_disarmall"
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26589) : error 029: invalid expression, assumed zero
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26589) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Re: compiling error - Medscripter - 18.10.2014

pleaz help


Re: i have Error i need help - AzaMx - 18.10.2014

post the line of the error code?


Re: i have Error i need help - Medscripter - 18.10.2014

CMD:disarmall(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 2)
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Administrator %s has disarmed everyone!", name);
SendClientMessageToAll(PLAYERCOLOR_AQUA, string);
else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 2 to use this command");
return 1;
}


Re: i have Error i need help - Blademaster680 - 18.10.2014

What is above that command also? Sometimes the error is on the line above due to a missing bracket or something


Re: i have Error i need help - Medscripter - 18.10.2014

what is the missing im forget


Re: i have Error i need help - Blademaster680 - 18.10.2014

Could you please post the code above CMD:disarmall.


Re: i have Error i need help - Medscripter - 18.10.2014

i find the new error

C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(2658 : error 029: invalid expression, assumed zero
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(2658 : warning 215: expression has no effect
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(2658 : error 001: expected token: ";", but found "return"
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26589) : warning 225: unreachable code
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26594) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26594) : error 017: undefined symbol "name"
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26594) : warning 215: expression has no effect
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26594) : error 001: expected token: ";", but found "]"
C:\Users\Ahmed\Desktop\Xtremies\gamemodes\X1tremie s.pwn(26594) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.