Thread: Array problem
View Single Post
  #2  
Old 01-20-2007, 11:46 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by wild8900 View Post
Hey the string wont show up in this script. Whats wrong with it?
Its supposed to return "Town Main" for now but instead I get nothing.
PHP Code:
maparray="Town Main","Cadoan","Melmond","Saronia Village","Shoreville","Snowbound Village";
showimg 498,@Tempus Sans ITC@#s(maparray[0]),playerx-0.1,playery-3; 
This is a pretty messy mix of attempted GS1 and GS2...
For GS1, use setstring maparray,"Town Main",...; and
PHP Code:
showtext #, #, #, font, style, #I(array,part); 
For GS2, use the array constructor, e.g. maparray = {"Town Main",...}, for an array, and
PHP Code:
showtext(#, #, #, "font", "style", array[part]); 
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote