Thread: String Arrays
View Single Post
  #2  
Old 03-06-2002, 10:34 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I think this is your basic string array:
setarray name,size;
so
if (created){
setarray test,3;
}
if (playerchats&&strequals(#c,test1)){
test[0]=1;
}
if (playerchats&&strequals(#c,test2)){
test[1]=1;
}
if (playerchats&&strequals(#c,test3)){
test[2]=1;
}
That's just a basic thing with arrays
[EDIT]
here's your script converted into string arrays
if (created) {
setarray test,10;
for(i=0;i<=10;i++)
{sleep.05;
test[i]=random(4,20);
timeout = .05;
}}
if (timeout) {
a = test[random(1,9)];
message #v(a);
timeout = .05;
}
[/EDIT]

Last edited by Python523; 03-06-2002 at 10:44 AM..