SA-MP Forums Archive
Public and forward problem :P - 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: Public and forward problem :P (/showthread.php?tid=395323)



2 Warnings with Public :D - AwokenNeoX - 25.11.2012

My Script:

Код:
	public OnPlayerFailedPruefung(playerid)
	{
		GameTextForPlayer(playerid,"~r~DURCHGEFALLEN",5000,3);
		SendClientMessage(playerid,ROT," Du bist leider durchgefallen. Versuche es beim nдchsten mal besser.");
	    UnFreezePlayer(playerid);
	    SetPlayerPosEx(playerid,364.3931,173.7390,1008.3828,180.0000);
	    SetCameraBehindPlayer(playerid);
		return 1;
	}
	
	public SetPlayerPosEx(playerid,Float:Xpos,Float:Ypos,Float:Zpos,Float:Angle)
	{
	    SetPlayerPos(playerid,Xpos,Ypos,Zpos);
	    SetPlayerFacingAngle(playerid,Angle);
	}
Error:

Код:
C:\Users\Kerem\Desktop\UltimateFreeStyl\gamemodes\Reallife.pwn(1560) : warning 235: public function lacks forward declaration (symbol "OnPlayerFailedPruefung")
C:\Users\Kerem\Desktop\UltimateFreeStyl\gamemodes\Reallife.pwn(1570) : warning 235: public function lacks forward declaration (symbol "SetPlayerPosEx")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
That I need a include because it was from a other script and in the other script the code was
not public it was: function OnPlayerFailed...


Re: Public and forward problem :P - C00K13M0N$73R - 25.11.2012

pawn Код:
forward public OnPlayerFailedPruefung(playerid);
forward public SetPlayerPosEx(playerid,Float:Xpos,Float:Ypos,Float:Zpos,Float:Angle);



AW: Public and forward problem :P - AwokenNeoX - 25.11.2012

Thanks

#closed