Raised This Month: $ Target: $400
 0% 

storing authID of players in global array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-26-2009 , 13:11   Re: storing authID of players in global array
Reply With Quote #6

Didn't really understand what you're doing but maybe this is what you need (only an example).
Code:
// Max players server can hold #define MAX_PLAYERS 32   // Max IDs that can be stored in an array + 1 // Max characters of SteamID new g_SteamID[MAX_PLAYERS + 1][32];   // Client is authorized, store his ID in g_SteamID public client_authorized(Client) {         // Local array which will hold the SteamID of Client         new SteamID[32];         // Get user SteamID and store it in SteamID array         get_user_authid(Client, SteamID, 31);           // Store data from SteamID array to g_SteamID global array         formatex(g_SteamID[Client], 31, SteamID); }
__________________
hleV 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 16:53.


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