Thread: Array problem
View Single Post
  #3  
Old 01-21-2007, 02:17 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
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; 
Well 1.) Thats now how you define an array.

GS1:
PHP Code:
setarray maparray,{"Town Main","Cadoan","Melmond","Saronia Village","Shoreville","Snowbound Village"};
showimg 498,@Tempus Sans ITC@#s(#I(maparray,0)),playerx-0.1,playery-3; 
or GS2:
PHP Code:
maparray = {"Town Main","Cadoan","Melmond","Saronia Village","Shoreville","Snowbound Village"};
showtext(498,player.x-0.1,player.y-3,Tempus Sans ITC,c,maparray[0]); 
__________________
What signature? I see no signature?
Reply With Quote