Jump to content
  • 0

display count what they select in the menu


kalabasa

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

How would it display how many player chooses yes or no?, i want to be announced

eg Yes: 99 No: 100

mes ""  + " " + (.@s == 1 ? "Yes" : "No") + " ?";

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

if(select("Yes:No") == 1)
    $@yes++;
else
    $@no++;

announce("Yes: " + $@yes + " No: " + $@no, bc_all);

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

Hmmm, If I click No it will add up to Yes

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

Then you are doing something wrong. I tested it and it works fine for me.
 

prontera,155,177,5	script	Test	100,{
	if(select("Yes:No") == 1)
		$@yes++;
	else
		$@no++;

	announce("Yes: " + $@yes + " No: " + $@no, bc_all);
	end;
}

 

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...