Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Substrings
Substrings
03-12-2005, 09:37 PM
#1
mogmiester
How would you make it so that if you type in -song x as a string, then i sets an integer to x? All help appeciated thx matt
03-12-2005, 09:52 PM
#2
johnfn
set num = integer(substring(Entered Chat String, 7, 7))
integer refering to a string to integer conversion.
03-13-2005, 11:22 AM
#3
mogmiester
ok thx. I take it that it gets the location of the number from the string? does it work with more than 1 digit numbers? Rep given