Jump to content

  •  

Gordis

Member Since 19 May 2013
Offline Last Active Jun 04 2017 12:07 AM
-----

#61579 Optimize target status

Posted by Gordis on 16 August 2015 - 02:12 AM

I think it would be:

 [color=rgb(0,0,136);]if[/color] [color=rgb(102,102,0);]([/color]tstatus[color=rgb(102,102,0);]->[/color]vit % 5 == 0)




#61576 Optimize target status

Posted by Gordis on 16 August 2015 - 01:40 AM

Why don't you use the modulus operator(%)?
So if a number modulus 5 equals 0, then it's a mutiple of five.
For example:  if (25%5 == 0) -> True
                        if(26%5 ==0) -> False
25 / 5 = 5 it is an exact division, whereas 26/5 = 5  and we get 1 as a rest.




#53158 eff skill

Posted by Gordis on 18 March 2015 - 11:23 PM

[color=rgb(51,51,51);font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:12px;]The first one is EL_COOLER and the second one is [/color][color=rgb(51,51,51);font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:12px;]EL_CHILLY_AIR.[/color]