SA-MP Forums Archive
[Problem] Script messed up, need fixed - 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: [Problem] Script messed up, need fixed (/showthread.php?tid=284572)



[Problem] Script messed up, need fixed - AgentBacon - 19.09.2011

I anciently pasted some other script into my script,but I tried to delete it, and it's getting these errors now:

C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(49 : error 055: start of function body without function header
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(499) : error 010: invalid function or declaration
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(507) : error 054: unmatched closing brace ("}")
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(510) : error 010: invalid function or declaration
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(513) : error 010: invalid function or declaration
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(519) : error 010: invalid function or declaration
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(526) : error 010: invalid function or declaration
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(364) : warning 204: symbol is assigned a value that is never used: "ammu"
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(360) : warning 204: symbol is assigned a value that is never used: "hq"
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(361) : warning 204: symbol is assigned a value that is never used: "hq2"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Errors.

It would be epic if you could fix this script:
http://pastebin.com/B8p2xgrQ


Re: [Problem] Script messed up, need fixed - TheLazySloth - 19.09.2011

498, 499, 507, 510, 513, 519, 526:
public OnPlayerPickUpPickup(playerid, pickupid);
change to
public OnPlayerPickUpPickup(playerid, pickupid)

360, 361, 364:
Add under public OnGameModeExit()
DestroyPickup(ammu);
DestroyPickup(hq);
DestroyPickup(hq2);



Re: [Problem] Script messed up, need fixed - Vince - 19.09.2011

Quote:
Originally Posted by AgentBacon
Посмотреть сообщение
C:\Users\OUA\Desktop\SAMP\gamemodes\bacon.pwn(49 : error 055: start of function body without function header
Anytime I see this particular error, I immediatly know that there is a wrong semicolon behind a function header, and yet there is:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid);
Remove that semicolon at the end of the line and it should compile fine.


Re: [Problem] Script messed up, need fixed - TheLazySloth - 19.09.2011

Look at my post, Vince only found half the problem. xP


Re: [Problem] Script messed up, need fixed - AgentBacon - 19.09.2011

Appreciated guys, all fixed thank you.