File Already Exists-problem.
#4

Must be what Race3r says
Код:
if(strcmp(cmd, "/login", true) == 0)
	{
	  new PlayerName[24];
	  tmp = strtok(cmdtext, idx);
	  if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_GREY, "Usage: /login (password)");
		if(IsLogged[playerid] == 1)
		{
			SendClientMessage(playerid, COLOR_GREY, "ERROR: You already are logged in.");
			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
			return 1;
		}
		else
		{
	  new name[MAX_PLAYER_NAME];
	  GetPlayerName(playerid, name, sizeof(name));
	  format(file,sizeof(file),"%s.ini",name);
		  if(!fexist(file))
			{
		  	SendClientMessage(playerid, COLOR_GREY, "ERROR: This account does not exist.");
		  	PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
		  	return 1;
			}
			else
Login code here
Reply


Messages In This Thread
File Already Exists-problem. - by IcyBlight - 11.05.2010, 18:28
Re: File Already Exists-problem. - by Rac3r - 11.05.2010, 18:33
Re: File Already Exists-problem. - by IcyBlight - 11.05.2010, 18:42
Re: File Already Exists-problem. - by Jefff - 11.05.2010, 18:47
Re: File Already Exists-problem. - by IcyBlight - 11.05.2010, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)