timer again.. on public
#1

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 );
}
Reply
#2

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

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
Reply
#4

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)