AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CS don't acept my plugins... (https://forums.alliedmods.net/showthread.php?t=95957)

timian 06-29-2009 03:24

CS don't acept my plugins...
 
somone make this for me:
PHP Code:

#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("test""1.0""Beancake12")
    
RegisterHam(Ham_Spawn"player""player_spawn"1)
}

public 
player_spawn(id) {
   new 
score get_user_frags(id) - get_user_deaths(id);
   if(
score >= 0)
      
set_user_health(id310 - (score*10))


but when i start cs with this file in sma and tme amxx, compiled file in plugin. and even i i try to write the file name in plugin.ini it wont work. what goes wrong?

i look at another code for only headshot and some others, but nobody write somthing that can help me.
</span></span>

Arkshine 06-29-2009 03:30

Re: CS don't acept my plugins...
 
Start to see if the plugin is running : amxx list

timian 06-29-2009 17:54

Re: CS don't acept my plugins...
 
what do you mean? cand find amy files with that name, and can't find any console things about it?

fysiks 06-29-2009 17:57

Re: CS don't acept my plugins...
 
In the server console type:

Code:

amxx list

timian 06-29-2009 19:18

Re: CS don't acept my plugins...
 
22 plugins, 21 loaded

22 uknown,uknown,even, bad load

timian 06-29-2009 19:24

Re: CS don't acept my plugins...
 
[IMG]http://img29.**************/img29/9813/consolen.th.jpg[/IMG]

fysiks 06-29-2009 19:33

Re: CS don't acept my plugins...
 
Next time just copy all the text from your console (and put it in code tags) instead of making a picture.

That means that the file "even" cannot be opened as a .amxx file. You must put the full file name ending in ".amxx" in plugins.ini.

Jaden 06-29-2009 20:45

Re: CS don't acept my plugins...
 
That or it didnt compile right.

fysiks 06-29-2009 23:30

Re: CS don't acept my plugins...
 
Quote:

Originally Posted by Jaden (Post 860422)
That or it didnt compile right.

Cant even get that far actually. It's looking for the file "even" which doesn't exist. It needs "even.amxx" or whatever it's called.

timian 06-30-2009 05:32

Re: CS don't acept my plugins...
 
ahh i got it now!

but i i call my amxx file even the odds2. and i write the same in the bottom in plugin.ini, i just edit it fo even. but why is the plugin name only even and not even the odds?


All times are GMT -4. The time now is 15:25.

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