Započeo -666-
•26. Mar. 2012.• Zaključano[pomoc] rentcar
392
pregleda
3
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
28
Postovi:
13
Teme:
Pridružio se:Feb. 2012
26. Mar. 2012.
Skripta koju koristim: GTARP
Detaljan opis problema: poceo sam definirati vozila i sad imam problem kod rentcar definiro sam auta ovako
i tako dalje za ostale onda ovo
i sad ovdje je problem
tako je bilo i ja sad stavim
i kad udem u to vozilo ne pise mi taj tekst sto :S
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
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):
26. Mar. 2012.
Ovako:
if(newcar == rentcar || newcar == rentcar) // itd dodajes onoliko koliko imas rentcar vozila .....
{
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);
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava