Jump to content
  • 0

Execute script when pressing cancel?


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Hey guys,

 

I'm trying to make a script that displays the number of players who are using the NPC at the moment. The problem is, each time a user presses "cancel" instead of choosing to close the script from the menu, it screws with the counter and ends up showing more users than there really are.

 

What I need is to figure out how to set a variable when a player presses the "cancel" button on the menu screen. So ideally, if player presses the cancel button, it will execute my script. What is the command to perform this kind of function? Thanks in advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

dont use select , use prompt instead.  

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