bluesky Posted September 8, 2017 Posted September 8, 2017 (edited) OH. the problem is fixed. I was wrong in other place. this code can work, needless convert. --------------------------------------------------- I want covert Integer to String , and put in variable like this set .@num,1; set .@string$,.@num; How could I conver it? Thank you!!! Edited September 8, 2017 by bluesky Quote
1 Emistry Posted September 10, 2017 Posted September 10, 2017 string to integer set .@num, atoi(.@string$); integer to string set .@string$, .@num + ""; 2 1 Quote
0 sader1992 Posted September 8, 2017 Posted September 8, 2017 good you fixed it and you may find this helpful for you https://github.com/rathena/rathena/blob/b275412bcc1251a1c9214b8cdafdf40323c2b0f7/doc/script_commands.txt#L8028 1 Quote
0 Z3R0 Posted September 10, 2017 Posted September 10, 2017 ... atoi(string) == integer value Not will return 0 even if not a valid number 1 Quote
Question
bluesky
OH. the problem is fixed.
I was wrong in other place.
this code can work, needless convert.
---------------------------------------------------
I want covert Integer to String , and put in variable
like this
set .@num,1; set .@string$,.@num;
How could I conver it?
Thank you!!!
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.