Raised This Month: $ Target: $400
 0% 

Problem with get_user_info


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Inside
Junior Member
Join Date: Jan 2010
Old 06-23-2011 , 12:56   Problem with get_user_info
#1

So, this code should type in setinfofile.txt the _pw and _mnx value (if it exist). The problem is that even I have a value for _mnx, it don't write anything. And I've tried with command (register_clcmd) and the same result...I've got _pw but no result for _mnx (used a "not exist" message if(!setinfovalue2[0]) and then return PLUGIN_HANDLED)

<removed code>

Last edited by Exolent[jNr]; 06-26-2011 at 14:44.
Inside is offline
Old 06-25-2011, 07:38
Inside
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Inside
Junior Member
Join Date: Jan 2010
Old 06-25-2011 , 16:50   Re: Problem with get_user_info
#3

Exolent, the first post was made 3 days ago. What 2 weeks?
Inside is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-25-2011 , 17:35   Re: Problem with get_user_info
#4

He said you shouldn't post another reply if 2 weeks haven't passed since your last post.

About the code... you should use str_to_num() and print them in chat or server console to see if it gets them correctly.

Also, you can use log_to_file() for that instead of write_file() and format().
__________________

Last edited by Hunter-Digital; 06-25-2011 at 17:37.
Hunter-Digital is offline
Old 06-26-2011, 08:15
Blue Snake.
This message has been deleted by Blue Snake..
Inside
Junior Member
Join Date: Jan 2010
Old 06-26-2011 , 08:24   Re: Problem with get_user_info
#6

Ah sry... My english is so bad...

I can't use str_to_num, the value is not a number everytime

with log_to_file...

L 06/26/2011 - 15:13:07: [Setinfo] Name: Andrei. ;x Info: _mnx Value:
L 06/26/2011 - 15:13:07: [Setinfo] Name: Andrei. ;x Info: _pw Value: askdhajksa


Code:
Connecting to 192.168.0.2:27014 ...
Connection accepted by 192.168.0.2:27014
* Privileges set 
] setinfo
name                Andrei. ;x 
_ndmh               63
_ndmf               63
_ndms               63
_gm                 6a22
src                 -1
old style menus     0
vgui_menus          0
dm                  0
_mnx                asdkad
_pw                 askdhajksa
_cl_autowepswtch   1
bottomcolor         6
cl_lc               1
cl_lw               1
topcolor            30
_vgui_menus         1
rate                25000
cl_updaterate       99
cl_dlmax            80
] condump
it still don't get the value for _mnx.... ( I removed if(setinfovalue2[0]) )
Inside is offline
Closed Thread



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 23:27.


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