PDA

View Full Version : 1 Warrning || warning 235: public function lacks forward declaration (symbol "op


Pawel_Shark
06/12/2008, 08:40 AM
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,1 1.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;
}

Serbish
06/12/2008, 08:51 AM
forward open(playerid);


Try with a little "o" in open.

ettans
06/12/2008, 08:55 AM
PAWN is case sensitive, so thats why it gave you a warning.

Donny_k
06/12/2008, 10:00 AM
Also that will only work for ID 0, you need to use SetTimerEx.

Isaac Mofujohn
21/09/2011, 03:30 PM
420) : warning 235: public function lacks forward declaration (symbol "OnQueryError") what do i do...

Sasino97
21/09/2011, 03:32 PM
420) : warning 235: public function lacks forward declaration (symbol "OnQueryError") what do i do...


forward OnQueryError();

belsss1
12/12/2011, 01:10 PM
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 (c) 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;

belsss1
12/12/2011, 01:15 PM
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 (c) 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;

THE_KNOWN
12/12/2011, 01:31 PM
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:forward Nupdate();
somewhere on the top