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.
format(string1,sizeof(string1),udb_hash(inputtext));
format(string2,sizeof(string2),udb_hash(PlayerInfo[playerid][pPass]));
if(!strcmp(udb_hash(inputtext), udb_hash(PlayerInfo[playerid][pPass])))
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];
format(string1, sizeof(string1), "%s",udb_hash(inputtext))
format(string2, sizeof(string2), "%s",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 001: expected token: ";", but found ")" C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1037) : error 029: invalid expression, assumed zero C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1037) : warning 215: expression has no effect C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1038) : error 001: expected token: ";", but found ")" C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1038) : error 029: invalid expression, assumed zero C:\Users\fabio\Desktop\Biohazard Roleplay\gamemodes\bhrp.pwn(1038) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
new string1[128], string2[128];
format(string1, sizeof(string1), "%s",udb_hash(inputtext)));
format(string2, sizeof(string2), "%s",udb_hash(PlayerInfo[playerid][pPass])));
if(!strcmp(string1, string2)) return ..............
if(!strcmp(udb_hash(inputtext), udb_hash(PlayerInfo[playerid][pPass]))) return ...
new string1[128], string2[128];
format(string1, sizeof(string1), "%s",udb_hash(inputtext));
format(string2, sizeof(string2), "%s",udb_hash(PlayerInfo[playerid][pPass]));
if(!strcmp(string1, string2)) return ..............
my bad, try it like this:
PHP код:
|