Szerző Téma: IsTrailerAttachedToVehicle hiba  (Megtekintve 614 alkalommal)

IsTrailerAttachedToVehicle hiba
« Dátum: 2011. június 21. - 16:53:12 »
0 Show voters
case 51:
{
    if(vanbenzin[playerid] == 0)
    {
       new kocsiid = GetPlayerVehicleID(playerid);
       if(IsTrailerAttachedToVehicle(kocsiid == 81 || 82 || 83 || 84 || 85))
      {
          SetTimer(\"BenzinTimer\", 4000, 0);
          GameTextForPlayer(playerid, \"~w~ppen megtltik a tartlyt\", 2000, 1);
         TogglePlayerControllable(playerid, 0);
      }
      else
      {
          SendClientMessage(playerid, COLOR_WHITE, \"Elöbb akaszd fel a pótkocsit!\");
      }
   }
   else
   {
       new kocsiid = GetPlayerVehicleID(playerid);
       if(IsTrailerAttachedToVehicle(kocsiid == 81 || 82 || 83 || 84 || 85))
      {
          SetTimer(\"BenzinTimer\", 4000, 0);
          GameTextForPlayer(playerid, \"~w~ppen csapoljk le a tartlyt\", 2000, 1);
         TogglePlayerControllable(playerid, 0);
      }
   }
}

 
Ha fent van a pótkocsi akkor is azt írja ki hogy elõbb akaszd fel a pótkocsit. Mi a hiba?

Nem elérhető Stray

  • 617
    • Profil megtekintése
IsTrailerAttachedToVehicle hiba
« Válasz #1 Dátum: 2011. június 21. - 17:24:27 »
0 Show voters
[pawn]if(IsTrailerAttachedToVehicle(kocsiid == 81 || 82 || 83 || 84 || 85))[/pawn]
helyett.
[pawn]if(IsTrailerAttachedToVehicle(kocsiid) >= 81 || IsTrailerAttachedToVehicle(kocsiid) <= 85)[/pawn]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal