Raised This Month: $ Target: $400
 0% 

Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MyPc
Senior Member
Join Date: Sep 2011
Old 11-25-2011 , 11:53   Re: Help
Reply With Quote #2

Quote:
Originally Posted by kramesa View Post
Hi!

How i get this the steamID and the name of client_disconnect for serverprint?

Look my plugin fails

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 

    
register_plugin("Client Test""1.0""krm"


public 
client_disconnect(id)
{
    new 
SteamID[32], Name[32]
    
    
get_user_authid(idSteamID31)
    
get_user_name(idName31)
    
    
set_task(5.0"ServerPrint"id)
}

public 
ServerPrint(SteamID[], Name[])
{
    
server_print("SteamID: %s"SteamID)
    
server_print("Name: %s"Name)


PHP Code:
#include < amxmodx >

public client_disconnectid )
{
    new 
steam35 ], name32 ]
    
get_user_authididsteamsizeof steam )
    
get_user_nameidnamesizeof name 1)
    
    
sprintsteamname )
}

public 
sprintsteam[], name[] )
{
    
server_print("SteamID: %s"steam)
    
server_print("Name: %s"name)

your code calls ServerPrint with the paramater id with no "SteamID" or "Name".

Last edited by MyPc; 11-25-2011 at 12:07.
MyPc is offline
 



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 08:26.


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