SA-MP Forums Archive
Getting this wierd errors. - 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: Getting this wierd errors. (/showthread.php?tid=616801)



Getting this wierd errors. - danielpalade - 10.09.2016

These are the errors:
Код:
../withal/w_extra.inc(382) : error 012: invalid function call, not a valid address
../withal/w_extra.inc(382) : warning 215: expression has no effect
../withal/w_extra.inc(382) : error 001: expected token: ";", but found ")"
../withal/w_extra.inc(382) : error 029: invalid expression, assumed zero
../withal/w_extra.inc(382) : fatal error 107: too many error messages on one line
This is the code:

Код:
user_payload = floatround_ceil(0.000003 * playerVariables[i][pLevel] * playerVariables[i][pBankMoney]),
Why am I getting this?


Re: Getting this wierd errors. - Misiur - 10.09.2016

https://sampwiki.blast.hk/wiki/Floatround

pawn Код:
user_payload = floatround(0.000003 * playerVariables[i][pLevel] * playerVariables[i][pBankMoney], floatround_ceil),