AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error trying compile on 1.8.3 md5 to hash_string (https://forums.alliedmods.net/showthread.php?t=294116)

LordOfBlade 02-20-2017 07:02

Error trying compile on 1.8.3 md5 to hash_string
 
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

OciXCrom 02-20-2017 07:20

Re: Error trying compile on 1.8.3 md5 to hash_string
 
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.


All times are GMT -4. The time now is 20:45.

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