| Blockland Forums > Modification Help |
| Need to remove certain parts of an array |
| << < (2/2) |
| Lugnut:
--- Quote from: Brian Smithers on March 03, 2012, 11:08:02 PM ---The 2 things I listed are incorrect 2 - that is just so wrong, idk what it i supposed to do, but hell it's wrong. If you want to see if the $C2CMultilist::user[%i] is the %name, then just do if($C2CMultilist::user[%i] $= %name) --- End quote --- oh. duh :( Guys, %foundtarget is defined here: --- Code: --- if(strstr($C2CMultilist::user[%i] $= %name) > -1) { $C2CMultilist::user[%i] = ""; %foundtarget = 1; --- End code --- admittedly, it's after the usage, but that shouldn't matter. |
| Lugnut:
oh my god I had this $C2CMultilist::user[%i--] == $C2CMultilist::user[%i]; jesus i need to rewrite this stuff |
| Navigation |
| Message Index |
| Previous page |