AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Two wrong plugins: not giving anything and not doing anything (https://forums.alliedmods.net/showthread.php?t=246542)

EpicKiller 08-19-2014 05:55

Two wrong plugins: not giving anything and not doing anything
 
Hey. So I got two wrong plugins. One of them was supposed to give a deagle. The other one was supposed to restart the server at /restart and set the server to knife-only on /lame. Well... I checked the code a thousand times and I still find it perfectly ok. So... what on Earth's wrong?

Here's the warmup one:
Spoiler


And here's the deagle one:
Spoiler


These are both compilable, but not doing their job.

Please help!

Deathknife 08-19-2014 06:28

Re: Two wrong plugins: not giving anything and not doing anything
 
For the deagle one:
if(contain(name, req_tag))
:arrow:

if(contain(name, req_tag) != -1)
As said here

EpicKiller 08-19-2014 07:14

Re: Two wrong plugins: not giving anything and not doing anything
 
Quote:

Originally Posted by Deathknife (Post 2186120)
For the deagle one:
if(contain(name, req_tag))
:arrow:

if(contain(name, req_tag) != -1)
As said here

Yup, sorry, I checked that thread 5 minutes after posting this one. Then forgot to reply here and notice people that that issue has been figured out.

EDIT: With that code modification, it still doesn't do it's job. Also made the code edit in the first post.

Deathknife 08-19-2014 08:29

Re: Two wrong plugins: not giving anything and not doing anything
 
Both of them work fine for me. Are you running any other plugins that have anything to do with chat? Such as iChat?

Also, you have registered the command /start, not /restart.

EpicKiller 08-19-2014 15:48

Re: Two wrong plugins: not giving anything and not doing anything
 
Quote:

Originally Posted by Deathknife (Post 2186156)
Both of them work fine for me. Are you running any other plugins that have anything to do with chat? Such as iChat?

Also, you have registered the command /start, not /restart.

No, I really don't run anything on the server I tested them on. It's a default addons.
Apparently, I mentioned /restart in the first post, altought I meant /start.

Deathknife 08-19-2014 16:47

Re: Two wrong plugins: not giving anything and not doing anything
 
Quote:

Originally Posted by EpicKiller (Post 2186360)
No, I really don't run anything on the server I tested them on. It's a default addons.
Apparently, I mentioned /restart in the first post, altought I meant /start.

Does anything show up in logs? Are you sure they are running? (You can check by amx_plugins)

EpicKiller 08-19-2014 16:56

Re: Two wrong plugins: not giving anything and not doing anything
 
Wow, that didn't cross my mind. Apparently, it's not running. Here's the error:
( 23) Load fails: Load error 17 (invalid file format or version) (plugin "ecila_tag_deagle.amxx")

fysiks 08-19-2014 18:22

Re: Two wrong plugins: not giving anything and not doing anything
 
Try recompiling it.

EpicKiller 08-20-2014 07:37

Re: Two wrong plugins: not giving anything and not doing anything
 
Yeah, found the problem. My compiler is 1.8.3, but my testing server's running 1.8.1. I compiled the plugins using the separate compiler. Now that I compiled them with the server's addons-included compiler, it works just fine.

Thank you! :)


All times are GMT -4. The time now is 12:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.