[HELP]Timer Problem
#1

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

no need for (playerid) just ()
Reply
#3

playerid is required, he uses playerid in the function.
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)