14.04.2012, 01:36
Still having some minor difficultys with this command.
I have searched around for fixes with no sucess, anyone know what would be wrong now?
Код:
C:\Program Files (x86)\Rockstar Games\samp\pawno\include\PPC_PlayerCommands.inc(6) : error 036: empty statement C:\Program Files (x86)\Rockstar Games\samp\pawno\include\PPC_PlayerCommands.inc(16) : error 029: invalid expression, assumed zero
pawn Код:
CMD:boot( playerid, params[] )
{
new bool:TrunkOpen[MAX_PLAYERS];
if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, COLOR_RED, "Error: You need to be in a vehicle." );
{
if(!TrunkOpen[playerid] == true);//this line is 6
{
TrunkOpen[playerid] = false;
new pVeh;
new engine,lights,alarm,doors,bonnet,boot,objective;
pVeh = GetPlayerVehicleID( playerid );
GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, 0, objective);
SendClientMessage(playerid, COLOR_GREY, "Trunk Closed");
}
else//line 16
{
TrunkOpen[playerid] = true;
new pVeh;
new engine,lights,alarm,doors,bonnet,boot,objective;
pVeh = GetPlayerVehicleID( playerid );
GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, 1, objective);
SendClientMessage(playerid, COLOR_GREY, "Trunk Open");
}
}
return 1;
}