Raised This Month: $ Target: $400
 0% 

Info Connect message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-02-2010 , 12:49   Info Connect message
Reply With Quote #1

when user connect's i want to se custom chat message
here is the code
Code:
#include <amxmodx>
#include <colorchat>
 
public ShowMessage( id ) {
 ColorChat(id, NORMAL, "^4Custom chat ^3Message")
}
public client_putinserver( id ) {
 if( is_user_connected ( id ) ) {
  set_task( 1.0, "ShowMessage", id );
}
when i start new game
it starts loading map and it crashes...
in logs there's no error with this plugin
when i turn it off from plugins.ini, everything works fine
OvidiuS is offline
Send a message via Skype™ to OvidiuS
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 08-02-2010 , 13:28   Re: Info Connect message
Reply With Quote #2

this should be -> ^3 -> ^03

u can do it like this:
PHP Code:
public ShowMessageid 
{
     
ColorChat(idNORMAL"^04Custom chat ^03Message")
}

public 
client_putinserverid 
{
    
ShowMessageid )

or like this:
PHP Code:
public client_putinserverid 
{
    
ColorChat(idNORMAL"^04Custom chat ^03Message")

__________________
vato loco [GE-S] is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-02-2010 , 16:25   Re: Info Connect message
Reply With Quote #3

Quote:
Originally Posted by vato loco [GE-S] View Post
this should be -> ^3 -> ^03

u can do it like this:
PHP Code:
public ShowMessageid 
{
     
ColorChat(idNORMAL"^04Custom chat ^03Message")
}

public 
client_putinserverid 
{
    
ShowMessageid )

or like this:
PHP Code:
public client_putinserverid 
{
    
ColorChat(idNORMAL"^04Custom chat ^03Message")

Theres a possibility that his colorchat is different from yours. So maybe ^4 and ^3 are correct, he just fails.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 08-02-2010 , 16:28   Re: Info Connect message
Reply With Quote #4

possible is everything
__________________
vato loco [GE-S] is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-02-2010 , 17:20   Re: Info Connect message
Reply With Quote #5

is this the only plugin running at the time of the crash?
__________________
minimiller is offline
Send a message via MSN to minimiller
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-03-2010 , 00:39   Re: Info Connect message
Reply With Quote #6

i disabled all extra plugins
here is the list of plugins that were running
Code:
Admin Base         1.8.1.3746  AMXX Dev Team     admin.amxx       running  
Admin Commands     1.8.1.3746  AMXX Dev Team     admincmd.amxx    running  
Admin Help         1.8.1.3746  AMXX Dev Team     adminhelp.amxx   running  
Slots Reservation  1.8.1.3746  AMXX Dev Team     adminslots.amxx  running  
Multi-Lingual Sys  1.8.1.3746  AMXX Dev Team     multilingual.am  running  
Menus Front-End    1.8.1.3746  AMXX Dev Team     menufront.amxx   running  
Commands Menu      1.8.1.3746  AMXX Dev Team     cmdmenu.amxx     running  
Players Menu       1.8.1.3746  AMXX Dev Team     plmenu.amxx      running  
Maps Menu          1.8.1.3746  AMXX Dev Team     mapsmenu.amxx    running  
Plugin Menu        1.8.1.3746  AMXX Dev Team     pluginmenu.amxx  running  
Anti Flood         1.8.1.3746  AMXX Dev Team     antiflood.amxx   running  
Scrolling Message  1.8.1.3746  AMXX Dev Team     scrollmsg.amxx   running  
Info. Messages     1.8.1.3746  AMXX Dev Team     imessage.amxx    running  
Admin Votes        1.8.1.3746  AMXX Dev Team     adminvote.amxx   running  
NextMap            1.8.1.3746  AMXX Dev Team     nextmap.amxx     running  
TimeLeft           1.8.1.3746  AMXX Dev Team     timeleft.amxx    running  
Pause Plugins      1.8.1.3746  AMXX Dev Team     pausecfg.amxx    running  
Stats Configurati  1.8.1.3746  AMXX Dev Team     statscfg.amxx    running  
AMX Super          4.2         Bmann_420         amx_super.amxx   running
when i enable that Custom Chat Message , server crashes
actually it's not online server, it's just new game with amxmodx, and bots? does that make any diffrence?
@vata_loco i checked my colorchat, it's ^4 and ^3
tried to compile your code, and some dump error showing
Error 021 server_cmd already defined

Last edited by OvidiuS; 08-03-2010 at 01:01.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-03-2010 , 01:59   Re: Info Connect message
Reply With Quote #7

Code:
#include <amxmodx>
#include <colorchat>
 
public ShowMessage( id ) {
 ColorChat(id, NORMAL, "^4Custom chat ^3Message")
}
public client_putinserver( id ) {
 if( is_user_connected ( id ) ) {
  set_task( 1.0, "ShowMessage", id );
}//You miss one
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-03-2010 , 10:14   Re: Info Connect message
Reply With Quote #8

Quote:
Originally Posted by GarbageBox View Post
Code:
#include <amxmodx>
#include <colorchat>
 
public ShowMessage( id ) {
 ColorChat(id, NORMAL, "^4Custom chat ^3Message")
}
public client_putinserver( id ) {
 if( is_user_connected ( id ) ) {
  set_task( 1.0, "ShowMessage", id );
}//You miss one
}
if i add that brackets i got error 021
symbol already defined "server_cmd"

Last edited by OvidiuS; 08-03-2010 at 10:17.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 08-03-2010 , 10:25   Re: Info Connect message
Reply With Quote #9

Show whole code, because you don't use server_cmd and you get this error.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 08-03-2010 , 10:31   Re: Info Connect message
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <colorchat>
 
public client_connectid 
{
  
set_task8.0"ShowMessage"id );
}

public 
ShowMessage(id)
{
    
ColorChat(idNORMAL"^4Custom chat ^3Message")

SpeeDeeR is offline
Reply



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 00:11.


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