engine help
#1

the old enginebreak basicly spamed the chatbox untill they got out, so i tried rebuiling one with the /stop command for the engine, now what did i do wrong?
Код:
public EngineBreak(targetid, playerid)
{
  
  new sendername[MAX_PLAYER_NAME];
	new Float:vHealth;
	GetPlayerName(playerid, sendername, sizeof(sendername));
  GetVehicleHealth(GetPlayerVehicleID(targetid),vHealth);
	if(IsPlayerInAnyVehicle(targetid))
 	if(vHealth < 450)
	{
 		if(!engineOn[GetPlayerVehicleID(playerid)])
 		{
			SendClientMessage(playerid, COLOR_GREEN, "How The Fuck Did Your Car Break With The Engine Off??");
 			TogglePlayerControllable(playerid, false);
		}
		else
		{
			engineOn[GetPlayerVehicleID(playerid)] = false;
			TogglePlayerControllable(playerid, false);
			SendClientMessage(playerid, COLOR_GREEN, "Your Engine is Broken, Call a mechanic /service mechanic!");
			SendClientMessage(playerid, COLOR_GREEN, "Use /extcar to get out!");
			return true;
		)
	  }
}
errors are
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP SERVER\CityWideRP\gamemodes\gamemodes\WC-RP.pwn(28711) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP SERVER\CityWideRP\gamemodes\gamemodes\WC-RP.pwn(28733) : warning 225: unreachable code
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP SERVER\CityWideRP\gamemodes\gamemodes\WC-RP.pwn(28733) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP SERVER\CityWideRP\gamemodes\gamemodes\WC-RP.pwn(28733) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP SERVER\CityWideRP\gamemodes\gamemodes\WC-RP.pwn(28764) : error 030: compound statement not closed at the end of file (started at line 28714)
Reply


Messages In This Thread
engine help - by killar456 - 19.03.2009, 00:48
Re: engine help - by killar456 - 19.03.2009, 21:40
Re: engine help - by Google63 - 19.03.2009, 22:03
Re: engine help - by [RP]Rav - 19.03.2009, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)