| Blockland Forums > Modification Help |
| Homing Script |
| << < (2/3) > >> |
| Slicksilver:
--- Quote from: Nexus on January 22, 2012, 02:51:46 PM ---Also, a while(1) loop should never be a real option. --- End quote --- There are plenty legitimate uses for a while(1) loop as long as you're positive it breaks at a certain point. |
| otto-san:
--- Quote from: Nexus on January 22, 2012, 02:51:46 PM ---I doubt it, nothing is wrong with --- Code: ---if(%mgo == 1 && %mco ==1) --- End code --- --- End quote --- Oh, I think I get it. That basically says if((%mgo == %mco) == 1) |
| takato14:
I'm not questioning the method, Im trying to fix the crashes it causes in-game. What alternatives for while(1) are there, if that could be what's causing the crashes? If not, go back to what I was talking about with deleting the projectiles if they're their distance from two players is the same. |
| otto-san:
--- Quote from: takato14 on January 22, 2012, 05:39:04 PM ---I'm not questioning the method, Im trying to fix the crashes it causes in-game. What alternatives for while(1) are there, if that could be what's causing the crashes? If not, go back to what I was talking about with deleting the projectiles if they're their distance from two players is the same. --- End quote --- remove %search = containerSearchNext(); from the first line. while(isObject(%search = containerSearchNext())) It seems that'd work but it also seems that'd be what would be used unless there were an issue. |
| Greek2me:
--- Quote from: otto-san on January 22, 2012, 03:01:39 PM ---That basically says if((%mgo == %mco) == 1) --- End quote --- Pretty sure if(%mgo == %mco == 1) is the same as if(%mgo == %mco && %mgo == 1). It tests whether they are both 1. if((%mgo == %mco) == 1) would be the same as if(%mgo == %mco). I think. |
| Navigation |
| Message Index |
| Next page |
| Previous page |