View Single Post
  #1  
Old 09-11-2007, 10:49 PM
RyDaze RyDaze is offline
Graal682686
RyDaze's Avatar
Join Date: Sep 2007
Location: Utopia
Posts: 43
RyDaze is an unknown quantity at this point
Send a message via AIM to RyDaze Send a message via MSN to RyDaze
Question For() with strings?

Ok i want to make scripts short and simple as possible.. So is there any way to make a script using the for() to add a number and get the string info with out just making the string like a word (i have problems with this z.Z)..

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
this.station = 1;
  
onLoad();
}
function 
onLoad(){
  
temp.startstring = "serverr.station"; //serverr.station.# = info,info,info...;
  
temp.stations = serverr.stations; //serverr.stations = 2;
  
for(i=0; i<temp.stations+1; i++) {
    
this.station = i;
  }
  
onRadio();
}
function 
onRadio(){
  
temp.info = @temp.startstring@ "." @this.station; //this post to return.. info,info,info...;
  //but it just returns 0 or just thinks its just "server.station.1" (thinks of it as a word not a string)
} 
__________________

Support Center | Forum Rules | Graal Staff Contacts

A little knowledge is dangerous. So is a lot.



Reply With Quote