Command Crashed my server then internet
#1

Hello everyone. I have this little problem. I was playing on my server with a few other people and all the sudden i typed the admin commands /fuelcar(s) For a few seconds it froze then the server turned up to end up restarting and keep trying to connect. I tried it on my own connection to see if it was a problem with the server but the same thing happen. Here is the code below. Any help would be appreciated. Thanks for reading and helping.

Код:
}
	if(strcmp(cmd, "/fuelcars", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(PlayerInfo[playerid][pAdmin] >= 10)
	    {
	      for(new c=0;c<MAX_VEHICLES;c++)
				{
					Fuel[c] = GasMax;
				}
				SendClientMessageToAll(COLOR_ADMINCMD, "(INFO) All cars refueled by administrator %s");
	    }
	    else
	    {
	      SendClientMessage(playerid, COLOR_GREY, "(ERROR) You are not authorized to use that command");
	      return 1;
	    }
	  }
	  return 1;
	}
Reply


Messages In This Thread
Command Crashed my server then internet - by PoliceRock101 - 26.03.2010, 23:58
Re: Command Crashed my server then internet - by Flake. - 26.03.2010, 23:59
Re: Command Crashed my server then internet - by PoliceRock101 - 27.03.2010, 00:14
Re: Command Crashed my server then internet - by Tenshi - 27.03.2010, 02:26

Forum Jump:


Users browsing this thread: 1 Guest(s)