0 crazyarashi Posted October 22, 2019 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
0 sumano98 Posted October 23, 2019 Author 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
0 crazyarashi Posted October 23, 2019 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
-1 LOOLP - OFF Posted October 21, 2019 Posted October 21, 2019 just select your database in the table that is saving all the variables # 1 Quote
-1 Balfear Posted October 21, 2019 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
-1 n3ySkie Posted October 22, 2019 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
Question
sumano98
for easy check cash in server
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.