bluesky Posted September 8, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 17 Reputation: 2 Joined: 04/26/17 Last Seen: 5 hours ago Share 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 Link to comment Share on other sites More sharing options...
1 Emistry Posted September 10, 2017 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10013 Reputation: 2345 Joined: 10/28/11 Last Seen: Monday at 04:56 PM Share Posted September 10, 2017 string to integer set .@num, atoi(.@string$); integer to string set .@string$, .@num + ""; 2 1 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted September 8, 2017 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.02 Content Count: 1676 Reputation: 702 Joined: 12/21/14 Last Seen: 10 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Z3R0 Posted September 10, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 615 Reputation: 201 Joined: 11/09/11 Last Seen: September 29, 2023 Share Posted September 10, 2017 ... atoi(string) == integer value Not will return 0 even if not a valid number 1 Quote Link to comment Share on other sites More sharing options...
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!!!
Link to comment
Share on other sites
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.