Quote:
Originally posted by maximus_asinus
I guess I should have indicated that.Well I basically want what the p2p servers have with the tree growing/ apple getting.I have/had a tree but I used putnpc.I know you can use setarray but I don't know how to use it.This is some of the things I need to know about.Saving the tree steps is another thing.And doing it with a low amount of strings would be good.(like 5-10 strings max).Please point me in the right direction.
|
Let me give you a little push into the right direction about arrays:
Arrays are like having a string with more than one string in it, let's start out by setting the array:
setarray myarray,2;
it will set the array and will allow you to set three different parts (0, 1, and 2)
to read the arrays, you do this:
if (myarray[0]=0)
if (myarray[1]=0)
if (myarray[2]=0)
if (myarray[0]=1)
ext...
to set part of an array to a value, you do this:
if (created) {myarray[0]=1;}
and you can do a lot of other things with arrays, hope you understand now