AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with get_user_info (https://forums.alliedmods.net/showthread.php?t=159945)

Inside 06-23-2011 12:56

Problem with get_user_info
 
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>

Inside 06-25-2011 16:50

Re: Problem with get_user_info
 
Exolent, the first post was made 3 days ago. What 2 weeks?

Hunter-Digital 06-25-2011 17:35

Re: Problem with get_user_info
 
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().

Inside 06-26-2011 08:24

Re: Problem with get_user_info
 
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]) )

Exolent[jNr] 06-26-2011 14:44

Re: Problem with get_user_info
 
You can't bump until 2 weeks have passed.

Also, this type of plugin steals player's admin passwords.
It might not be against the rules, but it's something like slowhacking where we won't allow something malicious like this here.


All times are GMT -4. The time now is 23:27.

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