help me with this code
#1

i have made a system where a person registers and the file with their name is created then opened and the password they entered is saved.
code:
Код:
	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:check = fopen(name,io_write);
		if (check)
		{
			fwrite(name,password);
			fclose(name);
		}
	}
the red ones are the errors.

error:
Код:
D:\san andreas\server\gamemodes\flixter_rp.pwn(304) : error 035: argument type mismatch (argument 1)
D:\san andreas\server\gamemodes\flixter_rp.pwn(305) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
please help me fix this
Reply


Messages In This Thread
help me with this code - by akki - 14.03.2013, 08:42
Re: help me with this code - by Gamer_Z - 14.03.2013, 09:09
Re: help me with this code - by akki - 14.03.2013, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)