SA-MP Forums Archive
(Solved)function with tag result used before definition, forcing reparse - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (Solved)function with tag result used before definition, forcing reparse (/showthread.php?tid=245518)



(Solved)function with tag result used before definition, forcing reparse - linuxthefish - 31.03.2011

http://pastebin.com/mfdvzUVq is whats generating the error, and the bit of code that calls this function is:
pawn Код:
GetXYInFrontOfPlayer(playerid, X, Y, 5);
GetPlayerFacingAngle(playerid, Zr);
Then
pawn Код:
car = CreateVehicle(modelid, X, Y, Z, Zr, -1, -1, -1);
And this is the error message!
Код:
warning 208: function with tag result used before definition, forcing reparse



Re: function with tag result used before definition, forcing reparse - Nexotronix - 31.03.2011

you need to put this function before that line where are you using this, and thats all


Re: function with tag result used before definition, forcing reparse - linuxthefish - 31.03.2011

Thanks, it works fine if i put it under the includes :P