Raised This Month: $ Target: $400
 0% 

How to fix - warning 233: symbol md5


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-25-2020 , 10:10   Re: How to fix - warning 233: symbol md5
Reply With Quote #1

It's not an error, it's a warning and the code still compiled fine. You have an explanation on how to fix it in the warning itself.

Deprecation warnings mean that there is better new alternative for the functions used inside the code. In this case "hash_string" is a better alternative for the old "md5" function.
__________________

Last edited by OciXCrom; 05-25-2020 at 10:11.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
fum77
Junior Member
Join Date: May 2020
Location: Bournemouth (UK)
Old 05-25-2020 , 10:29   Re: How to fix - warning 233: symbol md5
Reply With Quote #2

Thank you so much for your fast reply to my post.
I made that change when I first get the "warning"

PHP Code:
stock convert_password(const password[])
{
    new 
pass_salt[64], converted_password[34];

    
formatex(pass_saltcharsmax(pass_salt), "%s%s"passwordSALT)
    
hash_string(pass_saltconverted_password)
    
    return 
converted_password

Now I get an error
RegisterSystem.sma(2781) : error 035: argument type mismatch (argument 2)

Can you pls make this change for me on an example code?
I'm sure hash_string is not write how it has to be.

Thank you again.
fum77 is offline
Send a message via Skype™ to fum77
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 16:52.


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