A few errors while compiling.
#1

Код:
   		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");
Errors:

Код:
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 don't know what I'm doing whrong.

I want to check if a previous password that has been inputted (PlayerInfo....) is the same as the current inputtext. (String2, Udb_Hash(inputtext)).
Reply


Messages In This Thread
A few errors while compiling. - by faff - 07.10.2015, 19:07
AW: A few errors while compiling. - by Kaliber - 07.10.2015, 19:09
Re: A few errors while compiling. - by Dusan01 - 07.10.2015, 19:10
Re: A few errors while compiling. - by faff - 07.10.2015, 19:12
Re: A few errors while compiling. - by faff - 07.10.2015, 19:17
AW: A few errors while compiling. - by Kaliber - 07.10.2015, 19:18
Re: A few errors while compiling. - by Dusan01 - 07.10.2015, 19:19
Re: A few errors while compiling. - by J0sh... - 07.10.2015, 19:25
Re: A few errors while compiling. - by Vince - 07.10.2015, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)