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: April 14 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: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 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.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM 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: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 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.