Raised This Month: $ Target: $400
 0% 

Simple connect doesent work 0.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
petrov_belota
Member
Join Date: Mar 2008
Old 03-05-2009 , 12:32   Simple connect doesent work 0.0
Reply With Quote #1

Hi to all
This is my first plugin =]
But i don't know why he doesent work
Here is the code:
PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "ConnectMsg"
#define VERSION "1.0"
#define AUTHOR "SounD"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)    
}

public 
client_connect(id) {
    new 
name [32] ;
    
get_user_name(idname31)
    
set_hudmessage(2552552550.100.5006.012.0)
    if(
is_user_admin(id)) {
          
show_hudmessage(0"Warrning !!! ^n Admin %s is connecting ! ^nBe more careful !")
         } else {
             
show_hudmessage(0"%s is connecting !")
        }
    } 
The plugin is compiling without errors and
warrnings, but in game he doesent work 0.o
I look for hud msg durring take in players but it not
show me the msg
Sorry for my bad language
10x in advance ;)
petrov_belota is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-05-2009 , 12:38   Re: Simple connect doesent work 0.0
Reply With Quote #2

Quote:
Originally Posted by petrov_belota View Post
PHP Code:
show_hudmessage(0"Warrning !!! ^n Admin %s is connecting ! ^nBe more careful !")
// ...
show_hudmessage(0"%s is connecting !"
You didn't format the name.

PHP Code:
show_hudmessage(0"Warrning !!! ^n Admin %s is connecting ! ^nBe more careful !"name)
// ...
show_hudmessage(0"%s is connecting !"name
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 03-05-2009, 12:38
Dr.G
This message has been deleted by Dr.G.
Old 03-05-2009, 12:39
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: misread
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 16:53.


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