Jump to content

How to make a Rage Notification


Tropicallion

Recommended Posts

Hello so i am new to scripting and i want to add a Rage notification that tells the user if the scripts is out dated so my users will know when a new update is out. I know how to make a basic notification but not sure how to make it tell the users their script is out of date when the new version is out 

Link to comment
Share on other sites

  • Management Team

You can use the website API to query the latest available download version and then compare it to your local version. It will involve making a webrequest to "https://www.lcpdfr.com/applications/downloadsng/interface/api.php?do=checkForUpdates&fileId=yourFileId&textOnly=1", then parse the request (it will give you a version string) and check if it is greater than the local version.

 

Check out https://github.com/Albo1125/Albo1125-Common/blob/master/Albo1125.Common/UpdateChecker.cs for an open source version.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

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
Reply to this topic...

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