08.11.2016, 01:28
Код:
stock InvalidEmailCheck(playerid, email[]) { new string[128]; if(GetPVarInt(playerid, "NullEmail") == 1) { SetPVarString(playerid, "pTmpEmail", email); format(string, sizeof(string), "%s/checks/email.php?check=2&email=%s&id=%d", SAMP_WEB, email, GetPlayerSQLId(playerid)); HTTP(playerid, HTTP_GET, string, "", "OnInvalidEmailCheck"); } else if(GetPVarInt(playerid, "NullEmail") == 2) { format(string, sizeof(string), "%s/checks/email.php?check=3&email=%s&id=%d", SAMP_WEB, email, GetPlayerSQLId(playerid)); HTTP(playerid, HTTP_GET, string, "", "OnInvalidEmailCheck"); DeletePVar(playerid, "pTmpEmail"); } else if(GetPVarInt(playerid, "NullEmail") == 3) { ShowPlayerDialog(playerid, EMAIL_VALIDATION, DIALOG_STYLE_MSGBOX, "Email Verification", "Your email address is currently pending verification. Please check your email inbox.\n\nThe authorization code will automatically expire after one hour.", "Close", ""); } else { SetPVarString(playerid, "pTmpEmail", email); format(string, sizeof(string), "%s/checks/email.php?check=1&email=%s&id=%d", SAMP_WEB, email, GetPlayerSQLId(playerid)); HTTP(playerid, HTTP_GET, string, "", "OnInvalidEmailCheck"); } return 1; }
Код:
./includes/functions.pwn(21711) : error 017: undefined symbol "HTTP" ./includes/functions.pwn(21716) : error 017: undefined symbol "HTTP" ./includes/functions.pwn(21727) : error 017: undefined symbol "HTTP"