SA-MP Forums Archive
Forbidden operations? - 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: Forbidden operations? (/showthread.php?tid=136328)



Forbidden operations? - ziomal432 - 24.03.2010

Код:
/* forbidden operations */
forward operator%(Float:oper1, Float:oper2);
forward operator%(Float:oper1, oper2);
forward operator%(oper1, Float:oper2);
I've founded it in float.inc. What's this?


Re: Forbidden operations? - GTAguillaume - 24.03.2010

it calculates the remainder of a division.
For example:

50 % 10 = 0
51 % 10 = 1 (50/10 = 5, the remainder is 1)

(Sorry for my english :d)