[Pomoc] new vozila;

Započeo [BC]spiele, Novembar 17, 2010, 20:57:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Dakel da bi sprjecio mjesanje ideva vozila napravio sam sljedece.

gori di su new.
new taxi1;
new taxi2;
new taxi3;
new taxi4;
new taxi5;
new taxi6;
new taxi7;
new taxi8;
new taxi9;
new taxi10;
new taxi11;
new taxi12;
new taxi13;
new taxi14;
new taxi15;
new taxi16;
new taxi17;


Zatim di su ostala vozila ovo.
taxi1 = AddStaticVehicleEx(420,1803.38391113,-1902.24108887,13.25124073,90.00000000,6,6); //Taxi
taxi2 = AddStaticVehicleEx(420,1803.38391113,-1906.49121094,13.24916363,90.00000000,6,6); //Taxi
taxi3 = AddStaticVehicleEx(420,1803.38391113,-1911.03466797,13.24694443,90.00000000,6,6); //Taxi
taxi4 = AddStaticVehicleEx(420,1803.38391113,-1916.25756836,13.24439430,90.00000000,6,6); //Taxi
taxi5 = AddStaticVehicleEx(420,1803.38391113,-1921.53344727,13.24181747,90.00000000,6,6); //Taxi
taxi6 = AddStaticVehicleEx(420,1803.38391113,-1927.51977539,13.23889351,90.00000000,6,6); //Taxi
taxi7 = AddStaticVehicleEx(420,1803.38391113,-1933.17443848,13.23613262,90.00000000,6,6); //Taxi
taxi8 = AddStaticVehicleEx(438,1776.83251953,-1933.61291504,13.58591843,270.00000000,6,6); //Cabbie
taxi9 = AddStaticVehicleEx(438,1776.80261230,-1928.58923340,13.58697319,270.00000000,6,6); //Cabbie
taxi10 = AddStaticVehicleEx(438,1776.78234863,-1923.05493164,13.58695889,270.00000000,6,6); //Cabbie
taxi11 = AddStaticVehicleEx(409,1779.07946777,-1902.07739258,13.31393433,270.00000000,6,-1); //Stretch
taxi12 = AddStaticVehicleEx(409,1779.06274414,-1906.58154297,13.31362915,270.00000000,6,-1); //Stretch
taxi13 = AddStaticVehicleEx(437,1793.96386719,-1931.04394531,13.63717365,0.00000000,6,6); //Coach
taxi14 = AddStaticVehicleEx(437,1787.90368652,-1931.02111816,13.63718414,0.00000000,6,6); //Coach
taxi15 = AddStaticVehicleEx(437,1780.38903809,-1887.14758301,13.63960171,270.00000000,6,6); //Coach
taxi16 = AddStaticVehicleEx(438,1776.81396484,-1918.66308594,13.58698177,270.00000000,6,6); //Cabbie
taxi17 = AddStaticVehicleEx(438,1776.83874512,-1914.10876465,13.58699989,270.00000000,6,6); //Cabbie



I izbaci mi 36 warningova.



C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10325) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10326) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10327) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10328) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10329) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10330) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10331) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10332) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10333) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10334) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10335) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10336) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10337) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10338) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10339) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10340) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10341) : warning 202: number of arguments does not match definition
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(36823) : warning 203: symbol is never used: "Textovi"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(36823) : warning 203: symbol is never used: "checkcarhealthtimer"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10325) : warning 204: symbol is assigned a value that is never used: "taxi1"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10334) : warning 204: symbol is assigned a value that is never used: "taxi10"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10335) : warning 204: symbol is assigned a value that is never used: "taxi11"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10336) : warning 204: symbol is assigned a value that is never used: "taxi12"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10337) : warning 204: symbol is assigned a value that is never used: "taxi13"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10338) : warning 204: symbol is assigned a value that is never used: "taxi14"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10339) : warning 204: symbol is assigned a value that is never used: "taxi15"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10340) : warning 204: symbol is assigned a value that is never used: "taxi16"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10341) : warning 204: symbol is assigned a value that is never used: "taxi17"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10326) : warning 204: symbol is assigned a value that is never used: "taxi2"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10327) : warning 204: symbol is assigned a value that is never used: "taxi3"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10328) : warning 204: symbol is assigned a value that is never used: "taxi4"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10329) : warning 204: symbol is assigned a value that is never used: "taxi5"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10330) : warning 204: symbol is assigned a value that is never used: "taxi6"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10331) : warning 204: symbol is assigned a value that is never used: "taxi7"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10332) : warning 204: symbol is assigned a value that is never used: "taxi8"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10333) : warning 204: symbol is assigned a value that is never used: "taxi9"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Header size:           8164 bytes
Code size:          1610252 bytes
Data size:          4623264 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)
Total requirements: 6258064 bytes

36 Warnings.


slika by NaNx


www.balkan-city.info
vidi vise i osjeti razliku

Poslednja Izmena: Novembar 17, 2010, 21:05:56 POSLE PODNE od David Škrbić

Rjesio sam neke warningove ali sada mi ostanu ovi.


C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10325) : warning 204: symbol is assigned a value that is never used: "taxi1"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10334) : warning 204: symbol is assigned a value that is never used: "taxi10"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10335) : warning 204: symbol is assigned a value that is never used: "taxi11"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10336) : warning 204: symbol is assigned a value that is never used: "taxi12"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10337) : warning 204: symbol is assigned a value that is never used: "taxi13"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10338) : warning 204: symbol is assigned a value that is never used: "taxi14"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10339) : warning 204: symbol is assigned a value that is never used: "taxi15"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10340) : warning 204: symbol is assigned a value that is never used: "taxi16"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10341) : warning 204: symbol is assigned a value that is never used: "taxi17"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10326) : warning 204: symbol is assigned a value that is never used: "taxi2"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10327) : warning 204: symbol is assigned a value that is never used: "taxi3"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10328) : warning 204: symbol is assigned a value that is never used: "taxi4"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10329) : warning 204: symbol is assigned a value that is never used: "taxi5"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10330) : warning 204: symbol is assigned a value that is never used: "taxi6"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10331) : warning 204: symbol is assigned a value that is never used: "taxi7"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10332) : warning 204: symbol is assigned a value that is never used: "taxi8"
C:\Users\Bill Gates\Desktop\BC\BC novi gamemod\gamemodes\bc.pwn(10333) : warning 204: symbol is assigned a value that is never used: "taxi9"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Header size:           8164 bytes
Code size:          1610388 bytes
Data size:          4623264 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)
Total requirements: 6258200 bytes

19 Warnings.


slika by NaNx


www.balkan-city.info
vidi vise i osjeti razliku

aha,evo imam zadnje pitanje,dakle sada je ovo komada /fare

Prije je bilo ovako da provjeri jel igrac bio u taxi vozilu.
if(Veh == 401 || Veh == 402 || Veh == 403 || Veh == 404 || Veh == 405 || Veh == 406 || Veh == 407 || Veh == 408 || Veh == 409 || Veh == 410 || Veh == 411 || Veh == 436 || Veh == 437 || Veh == 438 || Veh == 439 || Veh == 440 || Veh == 441 || Veh == 442 || Veh == 443)
{


a ja sam stavio ovako i zanima me oce li bit nekakvih bugova.
if(Veh == taxi1 || Veh == taxi2 || Veh == taxi3 || Veh == taxi4 || Veh == taxi5 || Veh == taxi6 || Veh == taxi7 || Veh == taxi8 || Veh == taxi9 || Veh == taxi10 || Veh == taxi11 || Veh == taxi12 || Veh == taxi13 || Veh == taxi14 || Veh == taxi15 || Veh == taxi16 || Veh == taxi17)
{


slika by NaNx


www.balkan-city.info
vidi vise i osjeti razliku

ZicMortal

Fali ti jedan parametar na kraju. A to je respawn delay...

Dodaj ovako...

taxi1 = AddStaticVehicleEx(420,1803.38391113,-1902.24108887,13.25124073,90.00000000,6,6,120000); //Taxi

120000 milisekundi ili ti 120 sekundi... naci svaki put kad igrac izadje iz vozila... nakon nekih 120 sekundi ce se auto sam respawnati.

Stvarno se vidi da si loš skripter....



new
taxi[18];

taxi[1] = AddStaticVehicleEx(420,1803.38391113,-1902.24108887,13.25124073,90.00000000,6,6); //Taxi
taxi[2] = AddStaticVehicleEx(420,1803.38391113,-1906.49121094,13.24916363,90.00000000,6,6); //Taxi
taxi[3] = AddStaticVehicleEx(420,1803.38391113,-1911.03466797,13.24694443,90.00000000,6,6); //Taxi
taxi[4] = AddStaticVehicleEx(420,1803.38391113,-1916.25756836,13.24439430,90.00000000,6,6); //Taxi
taxi[5] = AddStaticVehicleEx(420,1803.38391113,-1921.53344727,13.24181747,90.00000000,6,6); //Taxi
taxi[6] = AddStaticVehicleEx(420,1803.38391113,-1927.51977539,13.23889351,90.00000000,6,6); //Taxi
taxi[7] = AddStaticVehicleEx(420,1803.38391113,-1933.17443848,13.23613262,90.00000000,6,6); //Taxi
// ITD ITD...


Iako je array malcice sporiji od ovog tvog nacina ali tolko sporiji da je to zanemarivo ;)
Kristijan Stipić

ja bi stavio radje:

static taxi[18];

makar je to od skriptera do skriptera

Jel neko zna kako da namjestim da igrac nemora biti clan neke org/bande da moze da udje u auto te bande posto su mi totalno pomijesani ID-evi od auta
Extreme Generation - 178.63.80.210 :7871