07.10.2015, 19:07
Код:
if(!strlen(inputtext)) return ShowPlayerDialog(playerid,27,DIALOG_STYLE_PASSWORD,"Password Selection (3/7)","The password length minimum is 6 alpha-numeric characters.\nEnter a password to register:","Register","Quit"); new string1[128], string2[128]; string1[128] = udb_hash(inputtext); string2[128] = udb_hash(PlayerInfo[playerid][pPass]; if(!strcmp(string1, string2)) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Password Selection (3/7)","Invalid Password, confirm your password:","Register","Quit");
Код:
C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1037) : error 032: array index out of bounds (variable "string1") C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1038) : error 032: array index out of bounds (variable "string2") C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1038) : error 001: expected token: ",", but found ";" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
I want to check if a previous password that has been inputted (PlayerInfo....) is the same as the current inputtext. (String2, Udb_Hash(inputtext)).