| Yoko http://forum.yoko.com.ua/ |
|
| How to combine text to object name? http://forum.yoko.com.ua/viewtopic.php?f=3&t=16721 |
Page 1 of 1 |
| Author: | Shokarta [ 2011-07-24 22:30:08 ] |
| Post subject: | How to combine text to object name? |
Hi guys, ive got this sorting maps script which works "teoreticaly" fine. i THINK there is just problem on this part Code: while i <= max as ive got MANY objects called maps_bag_NUMBER (NUMBER is variable of course) so i need to use them somehow in the script and i thing when i use bag[i] = "maps_bag_"+str(i) then it is concerned as a text, not as a object anymore... any solution? Code: sub maps() |
|
| Author: | ZeroDX [ 2011-07-25 01:02:06 ] |
| Post subject: | Re: How to combine text to object name? |
Try this Code: while i <= max |
|
| Author: | Shokarta [ 2011-07-25 09:45:29 ] |
| Post subject: | Re: How to combine text to object name? |
thanks works fine now.... well another issue is on row 148: Runtime error - Attempting to access array out of bounds (i marked the row in the script for you) basicly it opens the map i choose, then it moves the first bag[i] as it should, then it should open every map in the bag[i] and by position it should work with the map... but it opens just one map, then the error occurs which i dont understand why this error occurs, by my opinion it should would... please have a look at that as im sure im just missing a detail Code: sub mapy() |
|
| Author: | ZeroDX [ 2011-07-25 10:34:20 ] |
| Post subject: | Re: How to combine text to object name? |
Thats easy... Work with the journal, changing the value of i Code: i = 15You need to define a new variable, which will work with bags only |
|
| Author: | Shokarta [ 2011-07-25 10:48:02 ] |
| Post subject: | Re: How to combine text to object name? |
thanks, how could i miss that im using VARIABLE i not only for bags but for the journal as well script works fine, thanks man |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|