Much Errors
#6

If you have a { in somewhere wrong or forgot a }, mostlikely it will completely kill your filterscript/gamemode and give a crapload of errors, thats because } and { are used to define groups of actions to do, and if you dont close them, many things could happen, loops, script malfunctions, epic compiling fails, etc.

Example:

This is a piece of my Gamemode file:

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerTeamFromClass(playerid, classid);
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1950.3783, 1342.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1950.3783, 1342.1572, 15.3746);
	return 1;
}
No errors on this part or on the rest of the file, now if i add a {

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerTeamFromClass(playerid, classid); {
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1950.3783, 1342.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1950.3783, 1342.1572, 15.3746);
	return 1;
}
This is the fuckload of errors i get:

Код:
:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(79) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(86) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(86) : warning 217: loose indentation
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(86) : error 004: function "Streamer_OnPlayerConnect" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(97) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(97) : error 004: function "Streamer_OnPlayerDisconnect" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(101) : error 017: undefined symbol "reason"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(111) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(111) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(111) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(113) : error 017: undefined symbol "SetPlayerToTeamColor"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(118) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(118) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(118) : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(120) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(123) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(126) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(129) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(131) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(137) : error 017: undefined symbol "randomEx"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(138) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(139) : error 017: undefined symbol "killerid"
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(145) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(145) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(145) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(150) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(150) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(150) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(155) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(155) : error 029: invalid expression, assumed zero
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(155) : error 004: function "OnPlayerText" is not implemented
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(160) : warning 225: unreachable code
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(160) : error 029: invalid expression, assumed zero

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


26 Errors.
Loose idendation ones are common for missing a TAB-space(the one when you press TAB) or misplaced { or }.

Gotta find these, think of the parts of your file you last changed somethign in and try to find something abnormal there.

EDIT: Maybe you made something with the { or } while editing that Pname, or it was because of Lower-case Upper-case changes, and combined with the precious 4 errors depending on them this could cause this kind of mess.
Reply


Messages In This Thread
Much Errors - by Corona - 11.08.2011, 19:21
Re: Much Errors - by Onyewu - 11.08.2011, 19:29
Re: Much Errors - by Darnell - 11.08.2011, 19:30
Re: Much Errors - by Corona - 11.08.2011, 19:31
Re: Much Errors - by Darnell - 11.08.2011, 19:35
Re: Much Errors - by henry jiggy - 11.08.2011, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)