SA-MP Forums Archive
timer problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: timer problem (/showthread.php?tid=92402)



timer problem - sandisk125 - 19.08.2009

i have created an timer,but i get an errors,here's the code:
pawn Код:
public timer(playerid)
{
    GameTextForPlayer(playerid,"~b~Visit http://forum.sa-mp.com/index.php?topic=114460.0",3000,5);
    return 1;
}
here's the errors:
pawn Код:
D:\GTA San Andreas\gamemodes\DMV1.0.pwn(1188) : warning 235: public function lacks forward declaration (symbol "timer")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.



Re: timer problem - Redgie - 19.08.2009

add this somewhere in your script (Outside all fucntions)

Код:
forward timer(playerid);



Re: timer problem - sandisk125 - 19.08.2009

Quote:
Originally Posted by Redgie
add this somewhere in your script (Outside all fucntions)

Код:
forward timer(playerid);
thanks,dude