Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Plugin version checker
#11
in line 5 :
CSHARP Code
  1. if (CurrentVersion != Version)


Error 1 'System.Version' is a 'type' but is used like a 'variable'

Sad
Reply

#12
add this line :
private const decimal Version =1.2;
Or whatever is the version of your plugin
Reply

#13
Thank you.
now:

Code:
Literal of type double cannot be implicitly converted to type 'decimal'; use an 'M' suffix to create a literal of this type

@archit i think its better improve this code by checking plugin MD5 with other once exist on the host. Big Grin
And release you new plugin for that Wink
and with your allow i can add this on my Se7enPlug Big Grin
Reply

#14
That error is self explanatory just add a m at the ending of public const decimal Version = 1.2;
It should be public const decimal Version = 1.2m;
Reply

#15
ok Thank you.
the plugin is work fine but there is problem here if the file "http://www.mysite.com/update.txt" not exist on host the plugin crashed with non error :|

and what about :
@archit i think its better improve this code by checking plugin MD5 with other once exist on the host. Big Grin
And release you new plugin for that Wink
and with your allow i can add this on my Se7enPlug
Reply

#16
@archit pleas fix this plugin crash
plugin crashed when the file not exist on the host
Reply

#17
You realize that you have to replace http://www.mysite.com/update.txt with your own link?
[Image: azuw.jpg]
Reply

#18
:|

i know (i am not stupid :|).

so when update.txt not exist or renamed the plugin crashed and not work. maybe its better add a warring for that.
Reply

#19
Use try catch block.
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,167 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,748 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,567 10-30-2013, 11:59
Last Post: clacki
  MW3 Server Version superg1973 7 12,752 10-28-2013, 01:15
Last Post: kotyra972
  Help Modifying plugin maverigh 5 5,670 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,179 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 62,288 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,641 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,711 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,278 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.