warning 208
#1

pawn Код:
stock Float:Distance(Float:vector1[], Float:vector2[])
{
    new Float:dX = vector1[0] - vector2[0],
        Float:dY = vector1[1] - vector2[1],
        Float:dZ = vector1[2] - vector2[2];
    return (dX*dX + dY*dY + dZ*dZ);
}
Код:
warning 208: function with tag result used before definition, forcing reparse
Reply
#2

You need to define the function BEFORE you use it.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Either move the function to the top of your script, or forward it like a public function (including float tag).
Use the 'search' button next time.

EDIT: Forgot to refresh the page before posting :S
Reply
#4

I moved the stock and the problem solved.

Thank You BenzoAMG and MP2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)