SA-MP Forums Archive
GateTimer lacks forward declaration declaration - 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: GateTimer lacks forward declaration declaration (/showthread.php?tid=452783)



[Solved] GateTimer lacks forward declaration declaration - ShadowMultiGaming - 22.07.2013

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.


Re: GateTimer lacks forward declaration declaration - [XST]O_x - 22.07.2013

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



Re : GateTimer lacks forward declaration declaration - ShadowMultiGaming - 22.07.2013

Problem solved, thank you very much!!