Max 2 Players on a Hosted Server??
#6

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
Are you sure there is file which you want to open? fread( EDIT: not fread but io_read in fopen) crashes the server if there is no file.
Код:
	new File: UserFile = fopen(string2, io_read);
	if ( UserFile )
	{
.... and at the end
                }//end while
                fclose(UserFile);//close the file after everything has been read in the while
		}
		else
		{
			////new loginstring[512];
			////new loginname[64];
			////GetPlayerName(playerid,loginname,sizeof(loginname));
			////format(loginstring,sizeof(loginstring),"GRESKA\nVnesete tocna lozinka:",loginname);
			////ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Logiranje","Izlez");
	        ////fclose(UserFile);
	        SCM(playerid, UC, "GRESKA:{FFFFFF}Vnesovte pogresna lozinka!");
	        gPlayerLogTries[playerid] += 1;
	        if(gPlayerLogTries[playerid] == 6) { Kick(playerid); }
	        return 1;
		}
		PlayerInfo[playerid][pAdjustable] = 0;
		ResetPlayerMoney(playerid);
                      ...........
Reply


Messages In This Thread
Max 2 Players on a Hosted Server?? - by CityWorld - 17.09.2012, 13:21
Re: Max 2 Players on a Hosted Server?? - by dennissk - 17.09.2012, 14:37
Re: Max 2 Players on a Hosted Server?? - by iggy1 - 17.09.2012, 14:50
Re: Max 2 Players on a Hosted Server?? - by CityWorld - 17.09.2012, 15:10
Re: Max 2 Players on a Hosted Server?? - by Roko_foko - 17.09.2012, 15:15
Re: Max 2 Players on a Hosted Server?? - by CityWorld - 17.09.2012, 15:58
Re: Max 2 Players on a Hosted Server?? - by Seven_of_Nine - 17.09.2012, 16:14
Re: Max 2 Players on a Hosted Server?? - by CityWorld - 18.09.2012, 11:18
Re: Max 2 Players on a Hosted Server?? - by CityWorld - 20.09.2012, 09:57
Re: Max 2 Players on a Hosted Server?? - by catal4n - 22.11.2016, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)