Assumed Zero.
#1

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
Reply
#2

Here the fix.
PHP код:
static Float:S
PHP код:
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
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)