Explain this. - 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: Explain this. (
/showthread.php?tid=83689)
Explain this. -
Dreftas - 26.06.2009
what does it mean ? That
% ?
Re: Explain this. -
Delphinus - 26.06.2009
It stands for 'modulus'. Basically the number loops back to zero once it hits that number; that test is testing whether the answer is more than 0, meaning, in pseudo-code:
if(a is not a multiple of b){
DO THIS;
}
23 % 2 = 1
25 % 5 = 0
80 % 9 = 8
Etcetera.