Assumed Zero. - 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)
+--- Thread: Assumed Zero. (
/showthread.php?tid=651372)
Assumed Zero. -
Hunud - 19.03.2018
Log:
Код:
error 008: must be a constant expression; assumed zero
Line:
Код:
static Float:S = floatsqroot(floatpower(floatabs(inCarData[PR_velocity][0]), 2.0) + floatpower(floatabs(inCarData[PR_velocity][1]), 2.0) + floatpower(floatabs(inCarData[PR_velocity][2]), 2.0)) * 253.3;
What's the problem ?
- Thanks
Re: Assumed Zero. -
PowerMwK - 19.03.2018
Here the fix.
PHP код:
S = floatsqroot(floatpower(floatabs(inCarData[PR_velocity][0]), 2.0) + floatpower(floatabs(inCarData[PR_velocity][1]), 2.0) + floatpower(floatabs(inCarData[PR_velocity][2]), 2.0)) * 253.3;
Re: Assumed Zero. -
Hunud - 19.03.2018
Thanks