Raised This Month: $32 Target: $400
 8% 

[Help] Fix Little Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-31-2012 , 14:17   [Help] Fix Little Plugin
Reply With Quote #1

Hello All !
i having problem to compile this plugin, it give lot of errors.
pleas some one fix it:

PHP Code:
#include <amxmodx>

#define PDATE     "11th November 2011"

new CON_SOUND[] = "misc/admin/admin_online.wav"

new const PLUGIN[]  = "Admin connected";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[]  = "Nice1";

public 
plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR );
}

public 
client_putinserver(pID)
{
    
set_task(0.3"admin_connect"pID);
}

public 
admin_connect(pID)
{
    if(
get_user_flags(pID) & ADMIN_IMMUNITY)
    {
        
connect_hud(pID)
        
client_cmd(0"stopsound")
        
client_cmd(0"spk %s"CON_SOUND)
    }
}

public 
connect_hud(pID)
{
    new 
name[32]
    
get_user_name(pIDname31)
    
    
set_hudmessage(random_num(0255), random_num(0255), random_num(0255), 0.020.7406.012.0)
    
show_hudmessage(0"The Admin Is Connected ! : ^n%s"name)
}

public 
plugin_precache()
{
    
precache_sound("misc/admin/admin_online.wav")

TeddiBer is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 05-31-2012 , 14:27   Re: [Help] Fix Little Plugin
Reply With Quote #2

Output:

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Header size:            380 bytes Code size:              816 bytes Data size:              584 bytes Stack/heap size:      16384 bytes; estimated max. usage=53 cells (212 bytes) Total requirements:   18164 bytes Done. Compilation Time: 1,60 sec
__________________
kiki33hun is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-31-2012 , 14:29   Re: [Help] Fix Little Plugin
Reply With Quote #3

Quote:
Originally Posted by kiki33hun View Post
Output:

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Header size:            380 bytes Code size:              816 bytes Data size:              584 bytes Stack/heap size:      16384 bytes; estimated max. usage=53 cells (212 bytes) Total requirements:   18164 bytes Done. Compilation Time: 1,60 sec
some how it not compile for me, it with errors.
i'l try again
edit: Look the errors:


Last edited by TeddiBer; 05-31-2012 at 14:36.
TeddiBer is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-31-2012 , 14:39   Re: [Help] Fix Little Plugin
Reply With Quote #4

Make sure you are inputing it correctly, it appears you are missing the '#' symbol at the very beginning when you compile it
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-31-2012 , 14:43   Re: [Help] Fix Little Plugin
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Make sure you are inputing it correctly, it appears you are missing the '#' symbol at the very beginning when you compile it
i have the <amxmodx> include in the include folder.
TeddiBer is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-31-2012 , 14:48   Re: [Help] Fix Little Plugin
Reply With Quote #6

That is not what I meant. Based on your compiler output, I believe your first line is written as follows
Code:
include <amxmodx>
Instead of as
Code:
#include <amxmodx>
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 05-31-2012 , 14:49   Re: [Help] Fix Little Plugin
Reply With Quote #7

check if you have amxmodx.inc in scripting/include
sudzone is offline
Send a message via Yahoo to sudzone
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-31-2012 , 17:53   Re: [Help] Fix Little Plugin
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
That is not what I meant. Based on your compiler output, I believe your first line is written as follows
Code:
include <amxmodx>
Instead of as
Code:
#include <amxmodx>
The first line in the sma that i try to compile is:
Code:
#include <amxmodx>
so what is the problem ?

Quote:
Originally Posted by sudzone View Post
check if you have amxmodx.inc in scripting/include
yes i gut amxmodx.inc from the newest version of amxmodx 1.8.1.
TeddiBer is offline
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 05-31-2012 , 18:20   Re: [Help] Fix Little Plugin
Reply With Quote #9

functions used in plugin is not finded to .inc, this is the problem... try to replace your include folder from scripting with one default and after try to compile
sudzone is offline
Send a message via Yahoo to sudzone
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-31-2012 , 18:57   Re: [Help] Fix Little Plugin
Reply With Quote #10

Quote:
Originally Posted by sudzone View Post
functions used in plugin is not finded to .inc, this is the problem... try to replace your include folder from scripting with one default and after try to compile
Never Mine, It Compile Perfect Now !
Did:
Created A New Text File, Copied All The Code To The New File, Save As SMA, Than Compile Is Good.
Thanks For All Ho Tried To Help
TeddiBer is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:31.


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