need help something wrong with this code
#5

Quote:
Originally Posted by Denying
Посмотреть сообщение
Oh well, yeah that's correct. May I see the register dialog?

Try using if(fail == failvaluetokick) and not if(fail)
here is the register dialog
Код:
	if(dialogid == dialog_register)
	{
	   	new Pname[MAX_PLAYER_NAME];
		new name[MAX_PLAYER_NAME + 4];
		new password[30];
		GetPlayerName(playerid,Pname,sizeof(Pname));
		format(name,sizeof(name),"%s.txt",Pname);
		format(password,sizeof(password),"Password:%s|",inputtext);
		fcreate(name);
		new File:input = fopen(name,io_write);
 		fwrite(input,password);
		fclose(input);
	}
Reply


Messages In This Thread
need help something wrong with this code - by akki - 15.03.2013, 08:29
Re: need help something wrong with this code - by Denying - 15.03.2013, 08:32
Re: need help something wrong with this code - by akki - 15.03.2013, 08:33
Re: need help something wrong with this code - by Denying - 15.03.2013, 08:35
Re: need help something wrong with this code - by akki - 15.03.2013, 08:38
Re: need help something wrong with this code - by P3DRO - 15.03.2013, 11:41

Forum Jump:


Users browsing this thread: 2 Guest(s)