Help with warning ?
#1

Код:
C:\Documents and Settings\sanandreas\Desktop\samp server\gamemodes\makingwaves.pwn(293) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
What should i do to get rid of this ?
Reply
#2

Post the line that has the error
Reply
#3

at the top of your script add
pawn Код:
SetupPlayerForClassSelection(playerid);
Reply
#4

Код:
public OnGameModeExit()
{
	return 1;
}

public SetupPlayerForClassSelection(playerid)

{

	SetPlayerInterior(playerid,14);

	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);

	SetPlayerFacingAngle(playerid, 90.0);

	SetPlayerCameraPos(playerid,256.0815,-43.0475,1003.0234);

	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);

}
public OnPlayerRequestClass(playerid, classid)

{

  

	SetPlayerClass(playerid, classid);

	

	gPlayerClass[playerid] = classid;

	switch (classid) {

	  case 0:

	    {

				GameTextForPlayer(playerid, "~g~Worker", 500, 3);

			}

		case 1:

		  {

				GameTextForPlayer(playerid, "~g~Pimp", 500, 3);

			}

		case 2:

	    {

				GameTextForPlayer(playerid, "~g~Triad", 500, 3);

			}

		case 3:

	    {

				GameTextForPlayer(playerid, "~g~FBI", 500, 3);

	}

}

	return 1;

}
Reply
#5

Quote:
Originally Posted by hoodline
at the top of your script add
pawn Код:
SetupPlayerForClassSelection(playerid);
Thanx that worked now i get no errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)