27.05.2015, 21:13
Indentation, identation, identation. What a horrible mess this is. Let's write that out, shall we? This is YOUR code, I have changed nothing, but the formatting.
PHP код:
if(dialogid == 8)
{
if(!response)
{
RemoveDriverFromVehicle(playerid);
return 1;
}
{ // <-- this block is unconditional, so it always gets executed
GameTextForPlayer(playerid, "Please Wait...", 3000, 1);
ShowPlayerDialog(playerid,8,DIALOG_STYLE_MSGBOX,"Hotwire Vehicle","You don't have the keys to this vehicle, But this can be hotwired!","Hotwire","Cancel");
return 1; // <-- hence, this return always gets executed
}
if(engine[GetPlayerVehicleID(playerid)-1] == 0) // <-- hence, this code can never be reached
{