Some Errors that need fixing!
#1

Hello guys. I was wondering if you guys could help me with some Errors. I've gotten a filterscript and put it into the gamemode in the right places [I hope]. Here are the errors:

Код:
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(15) : error 049: invalid line continuation
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(27) : error 049: invalid line continuation
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(28) : error 055: start of function body without function header
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(67) : error 017: undefined symbol "FInfo"
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(67) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(125) : error 049: invalid line continuation
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : error 017: undefined symbol "Veh"
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : warning 215: expression has no effect
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : error 001: expected token: ";", but found "]"
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : fatal error 107: too many error messages on one line

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


10 Errors.
Here are the lines of the errors:

15 - 28
Код:
#define COLOR_BLUE 		0x2641FEFF
#define	COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 		0xAA3333AA
#define COLOR_LIGHTRED 	0xFF6347AA
#define COLOR_GREEN 	0x33AA33AA
#define COLOR_GREY 		0xAFAFAFAA
#define COLOR_ORANGE 	0xFF8000FF
#define COLOR_YELLOW 	0xFFFF00AA
#define COLOR_NEWS 		0xFFA500AA
#define COLOR_PURPLE 	0xC2A2DAFF
#pragma unused ret_memcpy
// ---------- [Enums] ---------- \\
enum FInfo
{
67 - 125
Код:
new FacInfo[MAX_FACTIONS][FInfo];

enum fGuns
{
	mace,
	macreq,
	nightstick,
	nightreq,
	knife,
	knifereq,
	baseball,
	basereq,
	teargas,
	tearreq,
	mm,
	mreq,
	sdpistol,
	sdreq,
	deagle,
	dreq,
	shotgun,
	shotreq,
	combat,
	combatreq,
	mp5,
	mp5req,
	ak47,
	ak47req,
	m4,
	m4req,
	sniper,
	sniperreq,
	camera,
	camreq,
	para,
	parareq,
	country,
	countryreq
}
new FacGuns[MAX_FACTIONS][fGuns];
main()
{
	printf("test");
}
enum PInfo
{
	pFacLeader,
	pFacRank,
	pFac,
	pDiv,
	pOwner,
	pGovAllowed,
	pDepAllowed,
	pGovMod,
	pDuty
}
new PlayerInfo[MAX_PLAYERS][PInfo];
// ---------- [End Of Enums] ---------- \\
new GovStarted[MAX_PLAYERS];
987 - 1000
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	new Float:x,Float:y,Float:z;
	GetPlayerPos(playerid,x,y,z);
	if(newstate == PLAYER_STATE_DRIVER) 
    {
        new vehicleid = GetPlayerVehicleID(playerid);
		for(new i=0;i<MAX_FACTIONS;i++)
		{
		    for(new v=0;v<12;v++)
		    {
		        if(vehicleid == FacInfo[i][Veh][v])
		        {
		            if(PlayerInfo[playerid][pFac] != i)
Thank you!
Reply
#2

What is above line 15? sometimes there error states the next line, because it is looking for the end of the above line...
Reply
#3

Line 13 - 15:
13
14 // ---------- [Color Defines] ---------- \\
15 #define COLOR_BLUE 0x2641FEFF
Reply
#4

Nevermind guys! Fixed it.. Sorry im so dumb..
I put ...

// ------- [Defines] ------- ''\\'' <<< those slides ain't allowed to be that way.. it has to be ''//'' otherwise it gives error!
Reply
#5

Ahhh ok. Didn't actually know that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)