[Pomoc]Rent


Započeo Cimbur, Septembar 29, 2012, 18:46:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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): ???
RESPECT :
Vegas & C++

na vrh skripte dodaj

new Rent[BROJ_VOZILA];

Mike Downhill × Scripter & PHP Developer × Balkan Ultimate Head Admin

Respect Vegas, Chris, Dude

#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 :)
RESPECT :
Vegas & C++

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(....

Mike Downhill × Scripter & PHP Developer × Balkan Ultimate Head Admin

Respect Vegas, Chris, Dude


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