Itt a kód ahol kidob:
(azért tudom hol mert én N@rbirock-al scriptelek)
[pawn]public OnPlayerEnterCheckpoint(playerid)
{
#pragma tabsize 0
if(GPSon[playerid] == 1)
{
SendClientMessage(playerid,red,\"GPS leállitva!\");
SetPlayerGPS(playerid,0);
DisablePlayerCheckpoint(playerid);
}
new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(IsPlayerInMission[playerid] == 1)
{
if(minfo[playerid][CheckpointID] == 1)
{
if(IsTruck(playerid,pvehiclemodel))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && IsPlayerInAnyVehicle(playerid))
{
minfo[playerid][TrailerID] = GetVehicleTrailer(GetPlayerVehicleID(playerid));
TrailerCheckTimer[playerid] = SetTimerEx(\"TrailerCheck\", 1000, true, \"d\" , playerid);
GameTextForPlayer(playerid, \"~r~~h~Rakodnak..~n~~g~~h~Kérlek Várj!\", 5000, 5);
TogglePlayerControllable(playerid, 0);
LTimer[playerid] = SetTimerEx(\"Loading\", 5000, false, \"d\" , playerid);
}
else
{
SendClientMessage(playerid,red,\"HIBA: \"lgrey\"Kell \"lyellow2\"pótkocsi\"lgrey\"\");
}
}
if(IsVan(playerid,pvehiclemodel))
{
GameTextForPlayer(playerid, \"r~~h~Rakodnak..~n~~g~~h~Kérlek Várj!\", 5000, 5);
TogglePlayerControllable(playerid, 0);
LTimer[playerid] = SetTimerEx(\"Loading\", 5000, false, \"d\" , playerid);
}
}
else if (minfo[playerid][CheckpointID] == 2)
{
if (IsTruck(playerid,pvehiclemodel))
{
if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(minfo[playerid][TrailerID] == GetVehicleTrailer(GetPlayerVehicleID(playerid)))
{
KillTimer(TrailerCheckTimer[playerid]);
minfo[playerid][AllowTrailerCheck] = false;
GameTextForPlayer(playerid, \"r~~h~Lerakodnak..~n~~g~~h~Kérlek Várj!\", 5000, 5);
TogglePlayerControllable(playerid, 0);
ULTimer[playerid] = SetTimerEx(\"UnLoading\", 5000, false, \"d\" , playerid);
}
else
{
SendClientMessage(playerid, red, \"HIBA: \"lgrey\"Kell pótkocsi!\");
}
}
else
{
SendClientMessage(playerid, red, \"HIBA: \"lgrey\"Kell pótkocsi hogy lepakold!\");
}
}
else if(IsVan(playerid,pvehiclemodel))
{
GameTextForPlayer(playerid, \"r~~h~Lerakodnak..~n~~g~~h~Kérlek Várj!\", 5000, 5);
TogglePlayerControllable(playerid, 0);
ULTimer[playerid] = SetTimerEx(\"UnLoading\", 5000, false, \"d\" , playerid);
}
}
else if(LoadCP[playerid] == 1)
{
SetTimerEx(\"LoadPassangers\",4000,false,\"i\",playerid);
GameTextForPlayer(playerid,\"~g~~h~Szálnak be!\",4000,3);
TogglePlayerControllable(playerid,0);
SetCameraBehindPlayer(playerid);
}
else if(LoadCP[playerid] == 2)
{
SetTimerEx(\"LoadPassangers\",4000,false,\"i\",playerid);
GameTextForPlayer(playerid,\"~g~~h~Szálnak ki!\",4000,3);
TogglePlayerControllable(playerid,0);
SetCameraBehindPlayer(playerid);
}
}
return 1;
}[/pawn]
Valahol ittlehet a hiba.
UI: Akkor dob ki amikor már leakarod pakolni a cuccokat. Szóval nem akkor amikor felveszed