SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 06/12/2008, 08:40 AM   #1
Pawel_Shark
Little Clucker
 
Join Date: Apr 2008
Posts: 39
Reputation: 0
Default 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

I get one warrning :/
Code:
warning 235: public function lacks forward declaration (symbol "open")
Code:
forward Open(playerid);
Code:
public OnGameModeInit()
{
	SetTimer("open", 1000, 1);
	return 1;
}
Code:
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;
}
Pawel_Shark is offline   Reply With Quote
Old 06/12/2008, 08:51 AM   #2
Serbish
Gangsta
 
Join Date: Apr 2008
Location: Luxembourg
Posts: 606
Reputation: 31
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

Code:
forward open(playerid);
Try with a little "o" in open.
Serbish is offline   Reply With Quote
Old 06/12/2008, 08:55 AM   #3
ettans
Huge Clucker
 
ettans's Avatar
 
Join Date: Feb 2008
Posts: 388
Reputation: 29
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

PAWN is case sensitive, so thats why it gave you a warning.
__________________
ettans is offline   Reply With Quote
Old 06/12/2008, 10:00 AM   #4
Donny_k
Gangsta
 
Donny_k's Avatar
 
Join Date: May 2006
Posts: 788
Reputation: 4
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol

Also that will only work for ID 0, you need to use SetTimerEx.
__________________
We don't stop playing because we grow old, we grow old because we stop playing.
Donny_k is offline   Reply With Quote
Old 21/09/2011, 03:30 PM   #5
Isaac Mofujohn
Big Clucker
 
Isaac Mofujohn's Avatar
 
Join Date: Sep 2011
Location: California, USA
Posts: 53
Reputation: 4
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

420) : warning 235: public function lacks forward declaration (symbol "OnQueryError") what do i do...
Isaac Mofujohn is offline   Reply With Quote
Old 21/09/2011, 03:32 PM   #6
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,393
Reputation: 127
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

Quote:
Originally Posted by Isaac Mofujohn View Post
420) : warning 235: public function lacks forward declaration (symbol "OnQueryError") what do i do...

pawn Code:
forward OnQueryError();
Sasino97 is offline   Reply With Quote
Old 12/12/2011, 01:10 PM   #7
belsss1
Little Clucker
 
Join Date: Dec 2011
Posts: 2
Reputation: 0
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

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 is offline   Reply With Quote
Old 12/12/2011, 01:15 PM   #8
belsss1
Little Clucker
 
Join Date: Dec 2011
Posts: 2
Reputation: 0
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

Quote:
Originally Posted by belsss1 View Post
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;
belsss1 is offline   Reply With Quote
Old 12/12/2011, 01:31 PM   #9
THE_KNOWN
Gangsta
 
Join Date: Dec 2010
Posts: 702
Reputation: 60
Default Re: 1 Warrning || warning 235: public function lacks forward declaration (symbol "op

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 Code:
forward Nupdate();
somewhere on the top
THE_KNOWN is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid function or declaration and unmatched closing brace ("}") errors.Help:S twinki Help Archive 7 01/09/2010 06:13 AM
public function lacks forward declaration (symbol "OnPlayerInfoChange") Jackster Help Archive 4 03/06/2010 04:39 PM
[SOLVED]warning 224: indeterminate array size in "sizeof" expression (symbol "") LarzI Help Archive 2 22/12/2009 04:32 AM
Public function lacks forward declaration AcId n RaPiD Help Archive 3 05/08/2009 04:13 PM


All times are GMT. The time now is 10:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.