sumano98 Posted October 21, 2019 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 12/16/17 Last Seen: March 15 Share Posted October 21, 2019 for easy check cash in server Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted October 22, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 3 minutes ago Share Posted October 22, 2019 (edited) - script server_cash -1,{ query_sql("SELECT sum(`value`) FROM `acc_reg_num` WHERE `key` = '#CASHPOINTS'",.@total$); mes "Total Server Cash : " + .@total$; end; } Edited October 23, 2019 by crazyarashi Correct Query Quote Link to comment Share on other sites More sharing options...
0 sumano98 Posted October 23, 2019 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 12/16/17 Last Seen: March 15 Author Share Posted October 23, 2019 (edited) 15 hours ago, crazyarashi said: - script server_cash -1,{ .@total = query_sql("SELECT sum(`value`) FROM `acc_reg_num` WHERE `key` = '#CASHPOINTS'"); mes "Total Server Cash : " + .@total; end; } i not sure why i have cash 1000 but show in script 1 cash Edited October 23, 2019 by sumano98 Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted October 23, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 3 minutes ago Share Posted October 23, 2019 25 minutes ago, sumano98 said: i not sure why i have cash 1000 but show in script 1 cash I updated the query Quote Link to comment Share on other sites More sharing options...
-1 LOOLP - OFF Posted October 21, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted October 21, 2019 just select your database in the table that is saving all the variables # 1 Quote Link to comment Share on other sites More sharing options...
-1 Balfear Posted October 21, 2019 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 256 Reputation: 245 Joined: 07/24/13 Last Seen: March 24 Share Posted October 21, 2019 8 hours ago, sumano98 said: for easy check cash in server SELECT sum(`value`) FROM acc_reg_num where `key` = '#CASHPOINTS'; 1 Quote Link to comment Share on other sites More sharing options...
-1 n3ySkie Posted October 22, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 51 Reputation: 2 Joined: 07/28/14 Last Seen: 37 minutes ago Share Posted October 22, 2019 - script zxzasasas -1,{ OnCmdHour: dispbottom "Your Server Cash:"; message strcharinfo(0),"Cash Points Total Balance = "+#CASHPOINTS+" Cash Points(s)"; end; OnInit: bindatcmd "points","playerpoints::OnCmdHour"; //@points to view time till next point. } just copy paste "message strcharinfo(0),"Cash Points Total Balance = "+#CASHPOINTS+" Cash Points(s)"; and edit #CASHPOINTS+ depends on your #variables Quote Link to comment Share on other sites More sharing options...
Question
sumano98
for easy check cash in server
Link to comment
Share on other sites
6 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.