Raised This Month: $ Target: $400
 0% 

Printing out a steam id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Luismvmj
Junior Member
Join Date: Apr 2010
Old 04-29-2010 , 14:19   Printing out a steam id
Reply With Quote #1

PHP Code:
new gSteamId[34];
//new gHudSync;

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
//gHudSync = CreateHudSyncObj();
}

public 
client_connect(id){
        new 
tempSteamId[35];
        
gSteamId[id]=get_user_authid(idtempSteamId34);
        
//set_hudmessage( 0, 255, 0, -1.0, 0.82, 0, 0.0, 1.1, 0.0, 0.0, 1 );
        //ShowSyncHudMsg( 0, gHudSync, "USERID: %i", gSteamId[id]);
        
server_cmd("say USER: %i - Steamid: %s"id gSteamId[id]); 

Can you please tell me why this code does not work? i'm new at this
Luismvmj is offline
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 04-29-2010 , 14:21   Re: Printing out a steam id
Reply With Quote #2

PHP Code:
new tempSteamId[35];
gSteamId[id]=get_user_authid(idtempSteamId34); 
->

PHP Code:
new tempSteamId[35];
get_user_authid(idtempSteamId34); 
->

PHP Code:
server_cmd("say USER: %i - Steamid: %s"id gSteamId
AfteR. is offline
Luismvmj
Junior Member
Join Date: Apr 2010
Old 04-29-2010 , 14:24   Re: Printing out a steam id
Reply With Quote #3

I want it to go on to an array, i just had the declaration part wrong

PHP Code:
new gSteamId[32][34];
//new gHudSync;

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
//gHudSync = CreateHudSyncObj();
}

public 
client_connect(id){
    

        
get_user_authid(idgSteamId[id], 34);
        
//set_hudmessage( 0, 255, 0, -1.0, 0.82, 0, 0.0, 1.1, 0.0, 0.0, 1 );
        //ShowSyncHudMsg( 0, gHudSync, "USERID: %i", gSteamId[id]);
        
server_cmd("say USER: %i - Steamid: %s"id gSteamId[id]); 
        

Works fine now

Last edited by Luismvmj; 04-29-2010 at 14:32.
Luismvmj is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-29-2010 , 14:33   Re: Printing out a steam id
Reply With Quote #4

new gSteamId[33][34];
get_user_authid(id, gSteamId[id], charsmax(gSteamId[]) );
__________________
Arkshine 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 08:56.


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