Jump to content
  • 0

show all total #CASHPOINTS in server


Question

6 answers to this question

Recommended Posts

  • 0
Posted (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 by crazyarashi
Correct Query
  • 0
Posted (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 by sumano98
  • -1
Posted

-    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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...