just another script question

Non-platform specific questions.

Re: just another script question

Postby Goettsch » Tue Oct 01, 2013 7:44 pm

this is the code

Code: Select all
buildings[0]=acave;
buildings[1]=atavern;
saveVars("citystatus.kng", "buildings");


acave and atavern are sariables saved in buildings group,the error is at the last line
Support me and open these links:
http://adf.ly/pZps0 (as many times as you can)
http://VisitsToMoney.com/index.php?refId=470333 (open once)
http://Visitors2Cash.com/ref.php?refId=169224 (open once)
My games:
Kingdoms of... http://adf.ly/pZq5O
Goettsch
 
Posts: 124
Joined: Fri Jun 28, 2013 10:00 pm
Score: 5 Give a positive score

Re: just another script question

Postby skydereign » Tue Oct 01, 2013 7:49 pm

Works fine for me. Are you sure it doesn't mean the second line is the error? Perhaps your array isn't the correct size.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: just another script question

Postby Goettsch » Tue Oct 01, 2013 8:07 pm

the array size is 19 and there are 19 buildings i want to save
Support me and open these links:
http://adf.ly/pZps0 (as many times as you can)
http://VisitsToMoney.com/index.php?refId=470333 (open once)
http://Visitors2Cash.com/ref.php?refId=169224 (open once)
My games:
Kingdoms of... http://adf.ly/pZq5O
Goettsch
 
Posts: 124
Joined: Fri Jun 28, 2013 10:00 pm
Score: 5 Give a positive score

Re: just another script question

Postby skydereign » Tue Oct 01, 2013 8:12 pm

I can still create and run it without error. So your 19 buildings are using indexes 0-18?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: just another script question

Postby Goettsch » Thu Oct 03, 2013 4:09 pm

yes,i think :?:
Support me and open these links:
http://adf.ly/pZps0 (as many times as you can)
http://VisitsToMoney.com/index.php?refId=470333 (open once)
http://Visitors2Cash.com/ref.php?refId=169224 (open once)
My games:
Kingdoms of... http://adf.ly/pZq5O
Goettsch
 
Posts: 124
Joined: Fri Jun 28, 2013 10:00 pm
Score: 5 Give a positive score

Re: just another script question

Postby skydereign » Sat Oct 05, 2013 6:23 pm

Your array is declared as size 18. When you talk about array sizes, you talk about the number of values it can hold, not the largest index. Up the size of buildings by one and your code should work.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: just another script question

Postby Goettsch » Sat Oct 05, 2013 7:18 pm

wow,thank you very much,finally everything work for now
stay ready for a alpha release tonight
Support me and open these links:
http://adf.ly/pZps0 (as many times as you can)
http://VisitsToMoney.com/index.php?refId=470333 (open once)
http://Visitors2Cash.com/ref.php?refId=169224 (open once)
My games:
Kingdoms of... http://adf.ly/pZq5O
Goettsch
 
Posts: 124
Joined: Fri Jun 28, 2013 10:00 pm
Score: 5 Give a positive score

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron