Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to spin words/text?
#2
Macro Macro2789
Code:
Copy      Help
str texts=
;text1
;text2
;text3

ARRAY(str) a=texts
int i
rep
,str s=a[i]
,i+1; if(i=a.len) i=0
,out s
,1

random
Macro Macro2790
Code:
Copy      Help
str texts=
;text1
;text2
;text3

ARRAY(str) a=texts
rep
,int i=RandomInt(0 a.len-1)
,str s=a[i]
,out s
,1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)