[Problem] Script messed up, need fixed
#1

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
Reply
#2

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);
Reply
#3

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.
Reply
#4

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

Appreciated guys, all fixed thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)