28.11.2013, 22:25
Код:
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.
Код:
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 {
Код:
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) {
Thnx to all that helped! :P