1 Warrning || warning 235: public function lacks forward declaration (symbol "op
#1

I get one warrning :/
Код:
warning 235: public function lacks forward declaration (symbol "open")
Код:
forward Open(playerid);
Код:
public OnGameModeInit()
{
	SetTimer("open", 1000, 1);
	return 1;
}
Код:
public open(playerid) //<--LINE 72
{
	if(PlayerToPoint(20,playerid,2481.3750,1525.2809,11.7737))
	{
 		GetPlayerSkin(playerid);
  	if(IsPlayerSkin(playerid, 287) || IsPlayerSkin(playerid, 285))
		{
			MoveObject(gate1, 1354.919,1821.171,27.070, 3);
			return 1;
		}
	}
	else
	{
 		GetPlayerSkin(playerid);
  	if(IsPlayerSkin(playerid, 287) || IsPlayerSkin(playerid, 285))
		{
			MoveObject(gate1, 1354.919,1821.171,21.495, 3);
			return 1;
		}
	}
return 0;
}
Reply
#2

Код:
forward open(playerid);
Try with a little "o" in open.
Reply
#3

PAWN is case sensitive, so thats why it gave you a warning.
Reply
#4

Also that will only work for ID 0, you need to use SetTimerEx.
Reply
#5

420) : warning 235: public function lacks forward declaration (symbol "OnQueryError") what do i do...
Reply
#6

Quote:
Originally Posted by Isaac Mofujohn
Посмотреть сообщение
420) : warning 235: public function lacks forward declaration (symbol "OnQueryError") what do i do...
pawn Код:
forward OnQueryError();
Reply
#7

C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(815) : warning 235: public function lacks forward declaration (symbol "Nupdate")
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(879) : warning 235: public function lacks forward declaration (symbol "SendPlayerFormattedText")
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(886) : warning 235: public function lacks forward declaration (symbol "SendAllFormattedText")
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(775) : warning 204: symbol is assigned a value that is never used: "Ntimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.

public Nupdate (){static Number = 0;TextDrawSetString(NEWS_TEXTDRAW, news[Number++]);TextDrawShowForAll(NEWS_TEXTDRAW);if(Number == sizeof(news)) Number = 0;
return 1;
Reply
#8

Quote:
Originally Posted by belsss1
Посмотреть сообщение
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(815) : warning 235: public function lacks forward declaration (symbol "Nupdate")
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(879) : warning 235: public function lacks forward declaration (symbol "SendPlayerFormattedText")
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(886) : warning 235: public function lacks forward declaration (symbol "SendAllFormattedText")
C:\Users\Kristian\Desktop\Drift Evolution server\gamemodes\Drift Evolution.pwn(775) : warning 204: symbol is assigned a value that is never used: "Ntimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.

815: public Nupdate (){static Number = 0;TextDrawSetString(NEWS_TEXTDRAW, news[Number++]);TextDrawShowForAll(NEWS_TEXTDRAW);if(Number == sizeof(news)) Number = 0;
return 1;
879: public SendPlayerFormattedText(playerid, const str[], define)
886: public SendAllFormattedText(playerid, const str[], define
775: Ntimer = SetTimer("Nupdate", 5000, 1);
776: NEWS_TEXTDRAW = TextDrawCreate(321.000000,420.000000,"~y~/Commands");
777: TextDrawUseBox(NEWS_TEXTDRAW,0);
778: TextDrawBoxColor(NEWS_TEXTDRAW,0x00000099);
779: TextDrawTextSize(NEWS_TEXTDRAW,0.000000,593.000000 );
780: TextDrawAlignment(NEWS_TEXTDRAW,2);
781: TextDrawBackgroundColor(NEWS_TEXTDRAW,0x000000ff);
782: TextDrawFont(NEWS_TEXTDRAW,1);
783: TextDrawLetterSize(NEWS_TEXTDRAW,0.399499,1.100000 );
784: TextDrawColor(NEWS_TEXTDRAW,0xffffffff);
785: TextDrawSetOutline(NEWS_TEXTDRAW,1);
786: TextDrawSetProportional(NEWS_TEXTDRAW,1);
787: TextDrawSetShadow(NEWS_TEXTDRAW,1);
788: UsePlayerPedAnims();
789: AllowInteriorWeapons(1);
790: ShowPlayerMarkers(1);
791: ShowNameTags(1);
792: return 1;
Reply
#9

879: stock SendPlayerFormattedText(playerid, const str[], define)
886: change public to stock
775: SetTimer("Nupdate", 5000, 1); <- remove the "Ntimer =" and remove "new Ntimer;"

paste:
pawn Код:
forward Nupdate();
somewhere on the top
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)