Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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=0i<temp.stations+1i++) {
    
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.