in line 5 :
Error 1 'System.Version' is a 'type' but is used like a 'variable'
CSHARP Code
- if (CurrentVersion != Version)
Error 1 'System.Version' is a 'type' but is used like a 'variable'
Request Plugin version checker
|
in line 5 :
CSHARP Code
Error 1 'System.Version' is a 'type' but is used like a 'variable'
11-05-2012, 10:51
add this line :
private const decimal Version =1.2; Or whatever is the version of your plugin
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. And release you new plugin for that and with your allow i can add this on my Se7enPlug
11-05-2012, 15:19
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;
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
@archit pleas fix this plugin crash
plugin crashed when the file not exist on the host
11-06-2012, 12:19
You realize that you have to replace http://www.mysite.com/update.txt with your own link?
11-06-2012, 13:59
:|
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. |
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Plugin with !ban !kick and !tampban | clemi555 | 3 | 4,161 |
11-09-2013, 09:21 Last Post: clemi555 |
|
AntiNoScope Plugin | clemi555 | 5 | 4,744 |
11-08-2013, 19:13 Last Post: clemi555 |
|
[Release] Bunker Plugin 1.3 | archit | 68 | 41,516 |
10-30-2013, 11:59 Last Post: clacki |
|
MW3 Server Version | superg1973 | 7 | 12,746 |
10-28-2013, 01:15 Last Post: kotyra972 |
|
Help Modifying plugin | maverigh | 5 | 5,667 |
10-19-2013, 10:29 Last Post: Nekochan |
|
[Request] Switch plugin | axel-le-meilleur | 6 | 5,176 |
10-19-2013, 06:59 Last Post: iRoNinja |
|
[Release] Yurio Map Plugin | Yurio | 101 | 62,266 |
09-26-2013, 13:38 Last Post: First_Semyon |
|
[Release] v1.1 ChangeMap/NextMap Plugin without any configuration | milchshake | 23 | 18,635 |
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 |
|
[Release] MW3: Random Weapon Plugin V1 | Nekochan | 50 | 33,267 |
09-11-2013, 15:11 Last Post: EnVi Sweden Rocks |
Users browsing this thread: |
1 Guest(s) |