Can someone explain these pawn compile warnings and help me to solve them?
#1

Hey,

When I compile my gamemode I get these pawn warnings:

Код:
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\gamemodes\dirk.pwn(738) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\gamemodes\dirk.pwn(777) : warning 217: loose indentation
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\gamemodes\dirk.pwn(1299) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Can someone explain these and help me to solve the problem?

Thanks

Dirk
Reply
#2

OnPlayerPrivmsg & OnPlayerInfoChange callbacks are removed in 0.3 version, get rid of them. And indent your code.
Reply
#3

Quote:
Originally Posted by dirkblok
Hey,

When I compile my gamemode I get these pawn warnings:

Код:
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Can someone explain these and help me to solve the problem?

Thanks

Dirk
A function is being “invoked” before it is declared, and
that function returns a value with a tag name, the parser must
make an extra pass over the source code, because the presence
of the tag name may change the interpretation of operators (in
the presence of user-defined operators). You can speed up the
parsing/compilation process by declaring the relevant functions
before using them.
Reply
#4

So? how can I get rid of this warning?

Код:
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Thanks for helping
Reply
#5

Looks like there is a problem in your include file, did you messed with that ?
Reply
#6

Quote:
Originally Posted by dirkblok
So? how can I get rid of this warning?

Код:
C:\Users\Dirk\Desktop\SAMP\SAMP\Nieuw RC10\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Thanks for helping
Just forward it or place above that function which uses it first.
Reply
#7

Got it fixed thank you guys
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)