SA-MP Forums Archive
[HELP]While making a game mode.... - 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: [HELP]While making a game mode.... (/showthread.php?tid=369342)



[HELP]While making a game mode.... - xSiiLenTx - 16.08.2012

I get this error: C:\Users\Jalon\Documents\CGRP\CGRP\gamemodes\CGRP. pwn(87453) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.'Apparently, this is the thing that is making it do this:
Код:
public OnPlayerFloodControl(playerid, iCount, iTimeSpan) {
Help?


Re: [HELP]While making a game mode.... - Sandiel - 16.08.2012

You have a forwarded public function that differs from the name of another.
For example:
- You forwarded a function named "PointTimer"...
- Then you edited the function's name and forgot to edit it in the area where you forwarded at first...

Long story short, you have a forwarded function that you forgot to update it's name when you changed it.


Re: [HELP]While making a game mode.... - xSiiLenTx - 16.08.2012

Should I just delete it? Thank you, but I can NOT find out where I messed up!


Re: [HELP]While making a game mode.... - Sandiel - 16.08.2012

Look at your forward functions, then follow each one untill you find it, and change it's forward to the correct name...Not easy, takes alot of time.


Re: [HELP]While making a game mode.... - xSiiLenTx - 16.08.2012

What would the name be? I just now restarted this project XD


Re: [HELP]While making a game mode.... - Sandiel - 16.08.2012

I don't know, you have a forwarded function that doesn't match the public function.
Appearantly you changed the "public" partOR the "forwarded" part and forgot to change the other one.
So sync them up.

TIP: just check each forwarded function's name, then simply ctrl + f and search for "public [forwarded name]"
if you don't find it, then that's the missing fuction.