SA-MP Forums Archive
[HELP]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: [HELP]Timer Problem (/showthread.php?tid=150671)



[HELP]Timer Problem - eDz0r - 27.05.2010

The 2 Warnings

Код:
C:\Users\Edy\Desktop\New Server\gamemodes\Western.pwn(452) : warning 235: public function lacks forward declaration (symbol "sherifgunshopexit")
C:\Users\Edy\Desktop\New Server\gamemodes\Western.pwn(461) : warning 235: public function lacks forward declaration (symbol "bastradgunshopexit")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
On Top
Код:
forward sherifgunshopexit(playerid);
forward bastradgunshopexit(playerid);
The Timer's
pawn Код:
SetTimerEx("sherifgunshopexit", 30000, 0,"i",playerid);
SetTimerEx("bastardgunshopexit",2000,0,"i",playerid);
The sherifgunshopexit Callback
pawn Код:
public sherifgunshopexit(playerid)//Line 452
{
SetPlayerFacingAngle(playerid,180);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,4091.3589,-605.1016,30.4987);
SetPlayerInterior(playerid,0);
return 1;
}
The bastradgunshopexit Callback
pawn Код:
public bastradgunshopexit(playerid)//Line 561
{
RemovePlayerMapIcon(playerid,2);
SetPlayerFacingAngle(playerid,358);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,4055.1155,-677.3716,30.4987);
SetPlayerInterior(playerid,0);
return 1;
}



Re: [HELP]Timer Problem - ViruZZzZ_ChiLLL - 27.05.2010

no need for (playerid) just ()


Re: [HELP]Timer Problem - Conroy - 27.05.2010

playerid is required, he uses playerid in the function.


Re: [HELP]Timer Problem - ViruZZzZ_ChiLLL - 27.05.2010

Oh, well I tried it, and it compiles fine by me
pawn Код:
forward sherifgunshopexit(playerid);
public sherifgunshopexit(playerid)//Line 452
{
SetPlayerFacingAngle(playerid,180);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,4091.3589,-605.1016,30.4987);
SetPlayerInterior(playerid,0);
return 1;
}
like that


Re: [HELP]Timer Problem - eDz0r - 27.05.2010

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Oh, well I tried it, and it compiles fine by me
pawn Код:
forward sherifgunshopexit(playerid);
public sherifgunshopexit(playerid)//Line 452
{
SetPlayerFacingAngle(playerid,180);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,4091.3589,-605.1016,30.4987);
SetPlayerInterior(playerid,0);
return 1;
}
like that
yeap compile whit no warning testing rigt now