SA-MP Forums Archive
Timer issue - 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: Timer issue (/showthread.php?tid=333853)



Timer issue - nmader - 13.04.2012

Alright, so I made a timer, and I am trying to have it do something when it ends, so I do this:
pawn Код:
public TutorialTimer(playerid)
{
    return 1;
}
and I get this error:
pawn Код:
C:\Documents and Settings\nmader\Desktop\Folders\Lost Roleplay\gamemodes\Login.pwn(972) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: Timer issue - Ash. - 13.04.2012

Show us where you forward the callback. It should look like:

pawn Код:
forward TutorialTimer(playerid);



Re: Timer issue - nmader - 13.04.2012

Wow... I am so new to timers, thank you for your help, it works now. +rep'ed for the fast and accurate response!


Re: Timer issue - Ash. - 13.04.2012

Quote:
Originally Posted by nmader
Посмотреть сообщение
Wow... I am so new to timers, thank you for your help, it works now. +rep'ed for the fast and accurate response!
Haha it's fine! We all started down there!
No problem.


Re: Timer issue - nmader - 13.04.2012

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Haha it's fine! We all started down there!
No problem.
I have been scripting for well over a year, just tried like hell to avoid timers, but lately, I am perfecting everything