AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   error..... (https://forums.alliedmods.net/showthread.php?t=173500)

samer 123 12-06-2011 07:17

error.....
 
i made plugin and no errors but not work in my server
this is the code :
PHP Code:

#include <amxmodx>
#include <colorchat>

#define PLUGIN "Info"
#define VERSION "1.0"
#define AUTHOR "Abo-Zanih"


public plugin_init(){
    
    
register_clcmd("say /eamil""eamil")
    
register_clcmd("say admin""eamil")
}

public 
eamil(id)
{
    
ColorChat(idGREEN"^x04 The OwnerAdmin Eamils : Skype: Algeeria.net , Hotmail : [email protected]")
    
ColorChat(idGREEN"^x04 Abo Zanih Eamils: Skype : samer_cs95 , Hotmail : [email protected]"
    
ColorChat(idGREEN"^x04 Please Vist Our Page : Www.deamondz.com")
}
public 
connectmessage(id)
{
if (!
is_user_connected(id))
{
ColorChat(idGREEN"^x04 Say : /eamil or admin to show information :D"
}



MyPc 12-06-2011 07:24

Re: error.....
 
connectmessage is never called
PHP Code:

if (!is_user_connected(id)) 

:O if he isn't connected how do you expect him to view the message anyway

samer 123 12-06-2011 07:29

Re: error.....
 
man give me the code ...

Splot 12-06-2011 09:32

Re: error.....
 
PHP Code:

#include <amxmodx>
#include <colorchat>

#define PLUGIN "Info"
#define VERSION "1.0"
#define AUTHOR "Abo-Zanih"


public plugin_init(){
    
    
register_clcmd("say /eamil""eamil")
    
register_clcmd("say admin""eamil")
}

public 
eamil(id)
{
    
ColorChat(idGREEN"^x04 The OwnerAdmin Eamils : Skype: Algeeria.net , Hotmail : [email protected]")
    
ColorChat(idGREEN"^x04 Abo Zanih Eamils: Skype : samer_cs95 , Hotmail : [email protected]"
    
ColorChat(idGREEN"^x04 Please Vist Our Page : Www.deamondz.com")
}

public 
client_putinserver(id)
{
    
set_task(5.0,"Welcommsg",id)    
}

public 
Welcommsg(id)
{
    
ColorChat(idGREEN"^x04 Say : /eamil or admin to show information :D")     



Napoleon_be 12-06-2011 11:26

Re: error.....
 
Suggestion:

PHP Code:

ColorChat(idGREEN"Say : /eamil or admin to show information :D")
ColorChat(idGREEN"The OwnerAdmin Eamils : Skype: Algeeria.net , Hotmail : [email protected]")
ColorChat(idGREEN"Abo Zanih Eamils: Skype : samer_cs95 , Hotmail : [email protected]"
ColorChat(idGREEN"Please Vist Our Page : Www.deamondz.com"

Make sure colorchat.inc is in your folder /scripting/includes at your server

fysiks 12-06-2011 18:45

Re: error.....
 
Quote:

Originally Posted by Napoleon_be (Post 1608686)
Suggestion:

PHP Code:

ColorChat(idGREEN"Say : /eamil or admin to show information :D")
ColorChat(idGREEN"The OwnerAdmin Eamils : Skype: Algeeria.net , Hotmail : [email protected]")
ColorChat(idGREEN"Abo Zanih Eamils: Skype : samer_cs95 , Hotmail : [email protected]"
ColorChat(idGREEN"Please Vist Our Page : Www.deamondz.com"

Make sure colorchat.inc is in your folder /scripting/includes at your server

He's already done that. If it wasn't there then he couldn't compile (which he says works).


All times are GMT -4. The time now is 20:53.

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