Raised This Month: $ Target: $400
 0% 

Error trying compile on 1.8.3 md5 to hash_string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LordOfBlade
Member
Join Date: Feb 2015
Old 02-20-2017 , 07:02   Error trying compile on 1.8.3 md5 to hash_string
Reply With Quote #1

good day. i have the next error when i try compile this

PHP Code:
public reg_passwordid ) {
    
read_argsg_passwordid ], charsmaxg_password[ ] ) );
    
remove_quotesg_passwordid ] );
    
trimg_passwordid ] );
    
md5g_passwordid ], g_passwordid ] ); // error here Warning: Symbol "md5" is marked as deprecated: Use hash_string() function. Also, see Hash_* 
    
    
new szQuery256 ], iData];
    
    
iData] = id;
    
iData] = REGISTRAR_CUENTA;
    
    
get_user_nameidg_playernameid ], charsmaxg_playername[ ] ) );
    
    
formatexszQuerycharsmaxszQuery ), "INSERT INTO %s (Usuario, Password) VALUES (^"%s^", ^"%s^")"szTableg_usuarioid ], g_passwordid ]);
    
SQL_ThreadQuery(g_hTuple"DataHandler"szQueryiData2);
    
    return 
PLUGIN_HANDLED;

PHP Code:
public log_passwordid ) {
    
read_argsg_passwordid ], charsmaxg_password[ ] ) );
    
remove_quotesg_passwordid ] );
    
trimg_passwordid ] );
    
md5g_passwordid ], g_passwordid ] ); // and here same error
    
    
new szQuery128 ], iData];
    
    
iData] = id;
    
iData] = LOGUEAR_CUENTA;
    
    
formatexszQuerycharsmaxszQuery ), "SELECT * FROM %s WHERE Usuario=^"%s^" AND Password=^"%s^""szTableg_usuarioid ], g_passwordid ] );
    
SQL_ThreadQueryg_hTuple"DataHandler"szQueryiData);
    
    return 
PLUGIN_HANDLED;

Can someone tell me if this affects something? And say so can someone do me the favor of changing md5 to hash_string. please
LordOfBlade is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2017 , 07:20   Re: Error trying compile on 1.8.3 md5 to hash_string
Reply With Quote #2

You will find more errors like that when using old plugins and new AMXX versions. It doesn't affect anything. It just says that the function is deprecated, i.e. "old" and shouldn't be used because it has a better alternative, which is hash_string in this case.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



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 20:45.


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