if($PaintCount < 1){ $PaintCount = 0; while(isObject("color" @ %count @ "SprayCanImage")) { $PaintCount++; }}
Using this:Code: [Select]if($PaintCount < 1){ $PaintCount = 0; while(isObject("color" @ %count @ "SprayCanImage")) { $PaintCount++; }}
Don't set a variable like that, it will break if someone closes and restarts his server with a larger colorset.Unless this isn't for an add-on that you want to release.
Not counting how weird a way that is, the only thing wrong is that he's using %count to check objects. This'll actually always result in 0. What do you mean about closing and restarting?
Don't set a variable like that, it will break if someone closes and restarts his server with a larger colorset.