Raised This Month: $ Target: $400
 0% 

get_user_info problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sader
Junior Member
Join Date: Aug 2011
Old 11-17-2011 , 20:00   get_user_info problem
Reply With Quote #1

Hi
I am trying to get client var value, but it looks so that if user is working on 64bit OS it doesn't work. I know that command client_cmd(id, "setinfo var value") works, cuz after I exit CS game I see that line in config.cfg, but still next time 64bit user connects to servers get_user_info() return empty value.

Here's my code prototype (btw client_connect doesn't return nor PLUGIN_CONTINUE nor PLUGIN_HANDLED, I'm not sure how to use those return constants properly)
PHP Code:
public client_connect(id)
{
  new 
val[33];
  
get_user_info(id"_myvarname"valcharsmax(val));
  
  
//if client doesn't have this var set yet then we will set it automaticly for him
  
if(val[0] == 0)
  {
    
client_cmd(id"setinfo ^"%s^" ^"%s^"""_myvarname"val); 
  }

And just in case. Cause may not be even 64bit OS ,but since I tested it on 2 different PC's 32 & 64 bits it was only idea I could come up with
sader is offline
 


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


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