hthuong Posted December 31, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 39 Reputation: 0 Joined: 08/09/12 Last Seen: October 2, 2013 Share Posted December 31, 2012 How to save character data to SQL with script? Quote Link to comment Share on other sites More sharing options...
Nana Posted December 31, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 118 Reputation: 6 Joined: 12/20/12 Last Seen: November 10, 2014 Share Posted December 31, 2012 (edited) You have to use something like this query_sql "SELECT `str` FROM global_reg_value WHERE account_id = " +.@idcuenta[0], .@array$[0]; // check cash points if (.@array$[0] != "#CASHPOINTS") { // if not then null query_sql "INSERT INTO `global_reg_value` (`char_id`,`str`,`value`,`type`,`account_id`) VALUES ('0','#CASHPOINTS','" +.@cantidad +"','2','" +.@idcuenta[0] +"')"; // Create cash points SQL } else { // Cash exist // update } // End if this is just an example of Rokimoki's guide n_n ~ Edited December 31, 2012 by aisha Quote Link to comment Share on other sites More sharing options...
Euphy Posted December 31, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1131 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted December 31, 2012 Query_sql Quote Link to comment Share on other sites More sharing options...
Question
hthuong
How to save character data to SQL with script?
Link to comment
Share on other sites
2 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.