Jump to content
  • 0

show all total #CASHPOINTS in server


sumano98

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  12/16/17
  • Last Seen:  

for easy check cash in server

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

-	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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  12/16/17
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

25 minutes ago, sumano98 said:

i not sure why i have cash 1000 but show in script 1 cash

I updated the query

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   50
  • Joined:  12/20/18
  • Last Seen:  

 
just select your database in the table that is saving all the variables #
  • Upvote 1
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

8 hours ago, sumano98 said:

for easy check cash in server

SELECT sum(`value`) FROM acc_reg_num where `key` = '#CASHPOINTS';

  • Upvote 1
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  45
  • Reputation:   2
  • Joined:  07/28/14
  • Last Seen:  

-    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

Link to comment
Share on other sites

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.

×
×
  • Create New...