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", val, charsmax(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