[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
#2

Yes, you do - after the 'hotran' variable and you also have an empty if-statement.
Reply
#3

ok edited still get 26errors
Reply
#4

Re-post the new code.
Reply
#5

Post errors please.
Reply
#6

well no i get 4errors here it is
Код:
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2702) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2702 -- 2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : error 014: invalid statement; not in switch
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)