SA-MP Forums Archive
timer again.. on public - 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 again.. on public (/showthread.php?tid=248378)



timer again.. on public - The Woody - 13.04.2011

Okay guys im here again with timer problems i get this warning and i don't understand it so can you guys help me?

Код:
(2531) : warning 235: public function lacks forward declaration (symbol "WaitOverD")
pawn Код:
public StartWaitTimerD1(playerid)
{
    SetTimerEx("WaitOverD",15000,false,"i",playerid);
}
public StartWaitTimerD2(playerid)
{
    SetTimerEx("WaitOverD",25000,false,"i",playerid);
}
public StartWaitTimerD3(playerid)
{
    SetTimerEx("WaitOverD",35000,false,"i",playerid);
}
public StartWaitTimerD4(playerid)
{
    SetTimerEx("WaitOverD",50000,false,"i",playerid);
}
public WaitOverD(playerid)
{
    DisablePlayerCheckpoint( playerid );
}



Re: timer again.. on public - xir - 13.04.2011

pawn Код:
forward WaitOverD(playerid);
?


Re: timer again.. on public - The Woody - 13.04.2011

Quote:
Originally Posted by xir
Посмотреть сообщение
pawn Код:
forward WaitOverD(playerid);
?
lol.. Ofcurse i have that :P that isn't the problem.

EDIT: OMG!. i didn't though i could forget that.. BUT i did omg-.- thanks for your reply


Re: timer again.. on public - iJumbo - 13.04.2011

Код:
public function lacks forward declaration
this say you need the forward ... this is the problem


Re: timer again.. on public - playbox12 - 13.04.2011

Just read what the error says next time, usally its pretty straight forward, if you can't figure it out, use the pawn_language.pdf guide to look up the error. It gives you detailed explanation on the error or warning.