Error 017 Undef symbol - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 017 Undef symbol (
/showthread.php?tid=478260)
Error 017 Undef symbol -
MoeSal - 28.11.2013
Код:
C:\Users\Scripting!\Desktop\High Speed Drivers\gamemodes\nfsw.pwn(1535) : error 017: undefined symbol "md5"
C:\Users\Scripting!\Desktop\High Speed Drivers\gamemodes\nfsw.pwn(1607) : error 017: undefined symbol "md5"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
this is line 1534-1544
Код:
mysql_free_result();
md5(str,inputtext,64);
format(str,256,"INSERT INTO emails (email,password) VALUES('%s','%s')",PlayerInfo[playerid][pEmail],str);
mysql_query(str);
Logged[playerid] = true;
for(new i = 0; i < 5; i++) TextDrawShowForPlayer(playerid,Tutorial[i]);
SelectTextDraw(playerid,0x73B1EDFF);
TutStep[playerid] = 1;
}
else
{
This is line 1590-1619
Код:
if(dialogid == DIALOG_LOG_PASS)
{
if(response)
{
if(strlen(inputtext) <= 0) return ShowPlayerDialog(playerid,DIALOG_LOG_PASS,DIALOG_STYLE_INPUT," ","You enter empty password/too long.\nTry again.","Enter","Cancel");
new str[256],passch[128];
format(str,256,"SELECT used FROM emails WHERE email='%s'",PlayerInfo[playerid][pEmail]);
mysql_query(str);
mysql_store_result();
mysql_fetch_row(str);
mysql_free_result();
if(strval(str) != 0) return ShowPlayerDialog(playerid,DIALOG_LOG_LOG,DIALOG_STYLE_INPUT," ","Current E-mail is being used in game.\nTry another E-mail.\nIf this is mistake, contact with administator.","Enter","Cancel");
format(str,128,"SELECT password FROM emails WHERE email='%s' LIMIT 1",PlayerInfo[playerid][pEmail]);
mysql_query(str);
mysql_store_result();
mysql_fetch_row(str);
mysql_free_result();
md5(passch,inputtext,64);
if(strcmp(str,passch,true) != 0) return ShowPlayerDialog(playerid,DIALOG_LOG_PASS,DIALOG_STYLE_INPUT," ","Wrong password for E-mail.\nTry again.","Enter","Cancel");
format(str,256,"UPDATE emails SET used=1 WHERE email='%s'",PlayerInfo[playerid][pEmail]);
mysql_query(str);
Logged[playerid] = true;
format(str,256,"SELECT driversnum FROM emails WHERE email='%s' LIMIT 1",PlayerInfo[playerid][pEmail]);
mysql_query(str);
mysql_store_result();
mysql_fetch_row(str);
mysql_free_result();
PlayerInfo[playerid][pDriversNum] = strval(str);
if(PlayerInfo[playerid][pDriversNum] == 0)
{
Plz help if u have any clue on how to fix this plz tell me/help me
Thnx to all that helped! :P
Re: Error 017 Undef symbol -
SuperViper - 29.11.2013
Read the error, it's in English. It's saying that
md5 was never defined but you're trying to use it. Basically you're trying to use a function that doesn't even exist. Also, MD5 is one of the worst hashing algorithms you can use. I recommend the Whirlpool plugin by ******.
https://sampforum.blast.hk/showthread.php?tid=65290