GateTimer lacks forward declaration declaration
#1

Hello,

I create a road toll system, when player is at pos in front of the toll road, player taps cmd (/peage) and a timer starts (peageBS1Open) with 5 second param. Another timer starts and close the gate 3 seconds later.

I have warning code: public function lacks forward declaration (symbol "peageBS1Open") but i don't need to add parameters to this function..

My script:

Define Functions:
forward peageBS1open();

Part of cmd /peage:
Код:
if(PlayerToPoint(3.0, playerid, -2677.0000,1273.1230,55.0437))
{
     GetPlayerName(playerid,playername,sizeof(playername));
     format(proxy_msg, sizeof(proxy_msg), "%s introduit quelques piиces dans la machine du pйage et prend le ticket      de reзu.", playername);
     proxy_sendMsg(playerid, proxy_msg);
     SetTimer("peageBS1Open", 5000, false);
     SafeGivePlayerMoney(playerid, PEAGEBS+5);
}
My Timer Function:
Код:
public peageBS1Open()
{
	SetDynamicObjectRot(peageBS1, 0.0000, 40.0000, 180.0000);
	SetTimer("peageBS1Close", 3000, false);
}
Please help me, thanks!

PS: Sorry for my bad English but i'm French and i post in English because I find that the English community support more than the French community.
Reply
#2

Your 'o' was not capital.
pawn Код:
forward peageBS1open();
Replace with:
pawn Код:
forward peageBS1Open();
Reply
#3

Problem solved, thank you very much!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)