SA-MP Forums Archive
Errors || Nothings wrong though?|?| - 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: Errors || Nothings wrong though?|?| (/showthread.php?tid=594647)



Errors || Nothings wrong though?|?| - BarFix - 21.11.2015

So.. i get a list of errors...

Код:
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6090) : error 055: start of function body without function header
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6090) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6096) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6110) : error 021: symbol already defined: "SetTimer"
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6115) : error 021: symbol already defined: "DisableInteriorEnterExits"
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6131) : error 021: symbol already defined: "CreateObject"
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6287) : error 021: symbol already defined: "CreatePickup"
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6308) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6315) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6320) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6324) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6328) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6335) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6375) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6382) : error 010: invalid function or declaration
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(6389) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Luke\Desktop\CODING\SCRIPT\gamemodes\SBRP.pwn(7834) : error 021: symbol already defined: "S@@_OnDialogResponse"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


17 Errors.
All i did was made a House System yet its effecting everything else? Ask too see a line because im not listing every line unless its needed.


Re: Errors || Nothings wrong though?|?| - SoFahim - 21.11.2015

Show those lines.

Also try to update the streamer plugin. ( There might be problem with includes. )


Re: Errors || Nothings wrong though?|?| - BarFix - 21.11.2015

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
Show those lines.

Also try to update the streamer plugin. ( There might be problem with includes. )
includes are fine.. which lines? theres too many too list.


Re: Errors || Nothings wrong though?|?| - Vince - 21.11.2015

Код:
start of function body without function header
Nearly always caused by an extra semicolon after the function header.


Re: Errors || Nothings wrong though?|?| - BarFix - 21.11.2015

Quote:
Originally Posted by Vince
Посмотреть сообщение
Код:
start of function body without function header
Nearly always caused by an extra semicolon after the function header.
It all looks fine?


Re: Errors || Nothings wrong though?|?| - N0FeaR - 21.11.2015

Put some lines, so we can help you.


Re: Errors || Nothings wrong though?|?| - BarFix - 22.11.2015

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Put some lines, so we can help you.
LINE 6110:
Код:
	SetTimer("settime",1000,true);
LINE 6115:
Код:
    DisableInteriorEnterExits();
LINE 6131:
Код:
	CreateObject(1223, 621.70001220703, -1443.6999511719, 13.300000190735, 0, 0, 356);



Re: Errors || Nothings wrong though?|?| - Vince - 22.11.2015

When fixing errors always start at the top. So 6090, please? Also a few lines before and a few lines after.


Re: Errors || Nothings wrong though?|?| - BarFix - 22.11.2015

Quote:
Originally Posted by Vince
Посмотреть сообщение
When fixing errors always start at the top. So 6090, please? Also a few lines before and a few lines after.
Код:
{	for(new i = 0; i < sizeof(CreatedCars); i++)
	{
		CreatedCars[i] = INVALID_VEHICLE_ID;
	}
this only broke when i made my house system.


Re: Errors || Nothings wrong though?|?| - Ahmad45123 - 22.11.2015

Quote:
Originally Posted by BarFix
Посмотреть сообщение
Код:
{	for(new i = 0; i < sizeof(CreatedCars); i++)
	{
		CreatedCars[i] = INVALID_VEHICLE_ID;
	}
this only broke when i made my house system.
Its most likely a missing semicolon or a missing bracket..

If you can't find it then provide more code.... Possibly just provide the whole house system you coded.. If you ain't sure what's wrong.
No one can help you like that.

If you are afraid of someone seeing your code, Then why did you post for help in the first place.