[HELP]DO you i have a extra bracket in this command?
#1

do i have a extra bracket in this command because i get 26errors
Код:
public starthotwireing(playerid)
{
  new hotran;
  {
  	new string[256];
  		new sendername[MAX_PLAYER_NAME];
    hotran = random(4);
    switch(hotran)
    {
    	case 0:
     	{
     		hotwire[GetPlayerVehicleID(playerid)] = true;
     		TogglePlayerControllable(playerid, true);
     		GetPlayerName(playerid, sendername, sizeof(sendername));
     		format(string, sizeof(string), "%s hotwires the car successfully and drives away", sendername);
     		ProxDetector(30.0, playerid, string, COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
     		gEngine[playerid] = 1;
     		SetTimer("hideall",3000,false);
    			TextDrawHideForPlayer(playerid, HWTE);
     		TextDrawShowForPlayer(playerid, TESP);
     	  if(engineOn[GetPlayerVehicleID(playerid)])
     	}
     	case 1, 2, 3 ,4:
     	{
      		GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "%s fails at the hotwireing", sendername);
				ProxDetector(30.0, playerid, string, COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
				gEngine[playerid] = 0;
				TextDrawShowForPlayer(playerid, HWTE);
				TextDrawShowForPlayer(playerid, EDNSF);
				SetTimer("hideall",3000,false);
				
		}
	}
	return 1;
}
Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)