I have a problem during compile!
#1

Hi i have a gamemode,and i think that is blocked
Eror:C:\Documents and Settings\Calin1996\My Documents\a2viata.pwn(419 : warning 208: function with tag result used before definition, forcing reparse

Line:4198: Float:functionEDFC(Float:arg0, Float:arg1, Float:arg2, Float:arg3, Float:arg4, Float:arg5)

I need someone to help me, please,can anyone?It's doesn't work with callback!
Reply
#2

That's a warning, not an error. That would be because the function is being declared after it is being used, simply move the function declaration above where it is being used, alternatively add "stock" before "Float" in your function declaration.
Reply
#3

I tryied both of them,same error,and my .amx is 0kb
Reply
#4

any idea?
Reply
#5

Код:
When a function is “used” (invoked) before being 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.
This is from pawn_lang.pdf. See if helps.
Reply
#6

I tried,is not working(
Reply
#7

Do what JoTochNietDan said about moving the function, or simply add this to your list of forward declarations:
pawn Код:
forward Float:functionEDFC(Float:arg0, Float:arg1, Float:arg2, Float:arg3, Float:arg4, Float:arg5);
Reply
#8

Is not working with forward,callback and some defines
Reply
#9

it's missing something?
Reply
#10

Can anyone help me please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)