0
Bičas prieš 9 metus
Function::GetVehName(vehicleid)
{
new strt[40];
format(strt,sizeof(strt),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]);
return strt;
}
Viskas šioje vietoje gerai, nustoja veikti ties:
if(uinfo[playerid][Vehicle][0] != -1) {
// NUSTOTU VEIKTI TIES ČIA, BET NETURIU PIRMOS TR.
format(firstcar, sizeof(firstcar), "%s\t%s", GetVehName(uinfo[playerid][Vehicle][0]), VehicleLockStatus(uinfo[playerid][Vehicle][0]));
} else {
format(firstcar, sizeof(firstcar), "Laisva vieta");
}
if(uinfo[playerid][Vehicle][1] != -1) {
// NUSTOJA TIES ČIA
format(secondcar, sizeof(secondcar), "%s\t%s", GetVehName(uinfo[playerid][Vehicle][1]), VehicleLockStatus(uinfo[playerid][Vehicle][1]));
// NUO ČIA DEBUGAS NIEKO NEBEDARO, TODĖL TURIU PAGRINDO MANYTI KAD KALTAS FORMAT, BET KURIOJE VIETOJE - NEŽINAU.
} else {
format(secondcar, sizeof(secondcar), "Laisva vieta");
}
if(User::ThirdSlot(playerid)) {
if(uinfo[playerid][Vehicle][2] != -1) {
format(thirdcar, sizeof(thirdcar), "%s\t%s", GetVehName(uinfo[playerid][Vehicle][2]), VehicleLockStatus(uinfo[playerid][Vehicle][2]));
} else {
format(thirdcar, sizeof(thirdcar), "Laisva vieta");
}
} else {
format(thirdcar, sizeof(thirdcar), "Pirkti trečio transporto vietą");
}
0