Skripta koju koristim:Od nule, moja.
Detaljan opis problema:Izbacuje mi ove errore,
C:\Users\Cimbur\Desktop\Untitled.pwn(54) : error 017: undefined symbol "Rent"
C:\Users\Cimbur\Desktop\Untitled.pwn(54) : warning 215: expression has no effect
C:\Users\Cimbur\Desktop\Untitled.pwn(54) : error 001: expected token: ";", but found "]"
C:\Users\Cimbur\Desktop\Untitled.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\Cimbur\Desktop\Untitled.pwn(54) : fatal error 107: too many error messages on one line
Na ovu liniju :
Rent[1] = AddStaticVehicle(475,1648.1810,-1136.2552,23.6927,359.9619,9,9);
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): ???
na vrh skripte dodaj
new Rent[BROJ_VOZILA];
#include <a_samp>
#if defined FILTERSCRIPT
new Rent[1];
new Rentano[MAX_PLAYERS];
forward RentVozila(carid)
Public RentVozila(carid)
{
for(new i = 0; i < sizeof(Rent); i++)
{
if(carid == Rent<i>) return 1;
}
return 0;
}</i>
To mi je na vrhu :)
Onda povecaj na 2 znaci new Rent[2]; ali pazi kad radis ta vozila moras pocet uvijek od nule znaci:
Rent[0] = AddStaticVehicle(....
Rent[1] = AddStaticVehicle(....
PM imas ;)
u scripti moras da imas uvek 1 vozilo vise nego sto si napravio za vozila npr imas ih 5 a u Scripti moras da imas 6 znaci kreces od vozila broj 0