I am having trouble with the mod function. I tried several variations to try to get the function to work but it wont. The problem is probably a stupid one so if anyone can help I would very much appreciate it!
Thanks in advance
Mr. O
The Mod function
Re: The Mod function
It might be hard to understand how Mod works, becouse you don't use it as a function or a command, you use it as an operator. Here's an example:
So basically, the syntax is:
I hope this solves your problem
Code: Select all
Text 0, 0, Str( 5 Mod 2 ) 'prints 1
Text 0, 13, Str( 6 Mod 4 ) 'prints 2
Text 0, 26, Str( 13 Mod 3 ) 'prints 1
Text 0, 39, Str( 42 Mod 7 ) 'prints 0
DrawScreen
WaitKey
Code: Select all
DIVIDEND Mod DIVISOR
cbEnchanted, uudelleenkirjoitettu runtime. Uusin versio: 0.4.1 — Nyt myös sorsat GitHubissa!
NetMatch - se kunnon nettimättö-deathmatch! Avoimella lähdekoodilla varustettu
vesalaakso.com
NetMatch - se kunnon nettimättö-deathmatch! Avoimella lähdekoodilla varustettu
vesalaakso.com