SA-MP Forums Archive
Problem with timer - 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 with timer (/showthread.php?tid=409824)



Problem with timer - davve95 - 23.01.2013

Hi!


I got some problem with my timer in my FS...

Every thing looks like it should do... And I've tierd alot but I couldn't figure it out...

Anyway the timer goes to a moveObject

If it makes any sence..

I get this error:

Function heading differs from prototype..

Error 025


Re: Problem with timer - azzerking - 23.01.2013

The error means, that when you defined it you maybe put less or more parameters then needed.

for Example:
pawn Код:
forward Something(playerid, weaponid);

public Something(playerid, weaponid, vehicleid) // the problem is that, as you can see there are more parameters here then their is in the forward declaration.
{
      // something here
}
Hope this helps


Re: Problem with timer - RajatPawar - 23.01.2013

If you entered something like public OnPlayerConnect(vehicleid), which is wrong, you would get this error.


Re: Problem with timer - davve95 - 23.01.2013

Okay thanks I just used MoveObject there.. Will it work... ??. I've never had problem with timers before..


AW: Problem with timer - Blackazur - 23.01.2013

give the code.


Re: Problem with timer - davve95 - 23.01.2013

I solved it now thanks alot anyway! I just forgot one thing in the forward.