Dissidia Posted April 11, 2016 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Share Posted April 11, 2016 (edited) set .@gotm_register,query_sql("SELECT `points` FROM `gotm` WHERE (`guild_id` = "+.@guild_id+") LIMIT 1",.@gotm_pts); if(.@gotm_register) query_sql "update `gotm` SET `points`='"+.@gotm_score+"' WHERE `guild_id`='"+.@guild_id+"'"; else query_sql("insert into gotm (guild_name, guild_id, points) values ('"+.@gotm_gname$+"','"+.@guild_id+"', '"+.@gotm_score+"')"); after I update my server into latest, this script did not work anymore. what is the changes? please help me thanks.. Edited April 11, 2016 by Dissidia Quote Link to comment Share on other sites More sharing options...
0 benching Posted April 11, 2016 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 350 Reputation: 43 Joined: 09/07/12 Last Seen: August 30, 2019 Share Posted April 11, 2016 what are you try to achieve here? Quote Link to comment Share on other sites More sharing options...
0 Dissidia Posted April 11, 2016 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Author Share Posted April 11, 2016 I did not post my full script. just that..is there any changes in query_sql in previous commit sir? Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted April 11, 2016 Group: Developer Topic Count: 36 Topics Per Day: 0.01 Content Count: 588 Reputation: 437 Joined: 01/26/16 Last Seen: Wednesday at 03:00 PM Share Posted April 11, 2016 (edited) Latest change to query_sql happened 3 days ago in this commit. It changes the command's return value when no data is received. Seems like your script relies on query_sql's old behavior. How about changing if(.@gotm_register) into if(!.@gotm_register) Edited April 11, 2016 by secretdataz Quote Link to comment Share on other sites More sharing options...
0 Dissidia Posted April 12, 2016 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Author Share Posted April 12, 2016 thanks. I will try it sir.. Quote Link to comment Share on other sites More sharing options...
Question
Dissidia
Link to comment
Share on other sites
4 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.