PtokaX forum

Development Section => Your Developing Problems => Topic started by: NightLitch on 08 February, 2004, 19:42:55

Title: Help with counting without extra table.
Post by: NightLitch on 08 February, 2004, 19:42:55
Here is my string:

      if tonumber(wCount) == MaxWarn or tonumber(wCount) == MaxWarn + MaxWarn then

I want it everytime it get x times equals MaxWarn some way.

I now am Dizzy again. But how can i calculate this without needing an extra table or after 1st kick after x warn needing to lower wCount to 0.

hope you get me.

ex:

MaxWarn is 4

wCount reach 4 kicked

wCount continues to 8 kicked again you get my point.

I don't want a extra table for this. but if I need it then
I take it, but not before some help.

/NL
Title:
Post by: tezlo on 08 February, 2004, 19:53:53
modulo.. remainder after division
if mod(wCount, MaxWarn) == 0 then ..
Title:
Post by: NightLitch on 08 February, 2004, 20:16:46
thx Tezlo gonna try