Detaljan opis problema: poceo sam definirati vozila i sad imam problem kod rentcar definiro sam auta ovako
new rentcarrentcar = AddStaticVehicleEx(451,1555.24169922,1835.33618164,10.58468437,0.00000000,-1,-1,180);
rentcar = AddStaticVehicleEx(451,1551.93774414,1835.55139160,10.58468437,0.00000000,-1,-1,180);i tako dalje za ostale onda ovo
forward IsRentCar(carid);
public IsRentcar(carid)
{
for(new i = 0; i < sizeof(rentcar); i++)
{
if(carid == rentcar)
return 1;
}
return 0;
}i sad ovdje je problem
if(newcar >= 135 && newcar <= 154)
{
if (HireCar != newcar)
{
format(string, sizeof(string), "~w~You can Rent this car~n~Cost:~g~$500~n~~w~To rent type ~g~/rentcar~w~~n~to get out type ~r~/exit");
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}tako je bilo i ja sad stavim
if(IsRentCar(newcar))
{
if (HireCar != newcar)
{
format(string, sizeof(string), "~w~You can Rent this car~n~Cost:~g~$500~n~~w~To rent type ~g~/rentcar~w~~n~to get out type ~r~/exit");
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}i kad udem u to vozilo ne pise mi taj tekst sto :S
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
