[Pomoc]Sistem vozila

Započeo Don Eagle, Maj 31, 2012, 15:39:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:City life RP v3.0 od Nikole ,
Detaljan opis problema:Ovako napravio sam organizaciju i dodao u nju 10 kola , ali kada udjem u kola od neke druge org pise da je to helikopter , tacno je 10 kola iz svih organizacija zamenjeno ovim 10 , msm u oko 10 kola mi se pojavljuje da su helisi.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Kola koja sam dodao :

NgCar[0] = AddStaticVehicle(425,2777.6633,-2346.7036,16.4631,0.8302,1,1);
NgCar[1] = AddStaticVehicle(427,2788.1379,-2455.5911,13.7654,90.8104,1,1);
NgCar[2] = AddStaticVehicle(430,2701.2568,-2305.8726,-0.3931,359.9283,1,1);
NgCar[3] = AddStaticVehicle(470,2738.5347,-2469.9470,13.6419,2.6267,1,1);
NgCar[4] = AddStaticVehicle(470,2743.1333,-2469.7756,13.6768,0.3328,1,1);
NgCar[5] = AddStaticVehicle(487,2792.0352,-2539.3735,16.0068,359.0394,1,1);
NgCar[6] = AddStaticVehicle(528,2788.1531,-2495.0039,13.6951,91.0180,1,1);
NgCar[7] = AddStaticVehicle(541,2738.1338,-2421.2314,13.2589,223.4454,1,1);
NgCar[8] = AddStaticVehicle(541,2737.8452,-2428.4690,13.2638,236.0337,1,1);
NgCar[9] = AddStaticVehicle(541,2743.5730,-2447.1284,13.2709,328.2711,1,1);


A ovo su kola jos nekih organizacija :

CNNCar[0] = AddStaticVehicle(586,1274.90002441,-1524.09997559,13.19999981,140.00000000,2,2); // cnn motor 1
CNNCar[1] = AddStaticVehicle(586,1277.40002441,-1524.30004883,13.19999981,139.99877930,2,2); // cnn motor 2
CNNCar[2] = AddStaticVehicle(586,1280.09997559,-1524.50000000,13.19999981,139.99877930,2,2); // cnn motor 3
CNNCar[3] = AddStaticVehicle(586,1218.40002441,-1550.69995117,13.10000038,217.99877930,2,2); // cnn motor 4
CNNCar[4] = AddStaticVehicle(586,1218.09997559,-1555.09997559,13.10000038,217.99621582,2,2); // cnn motor 5
CNNCar[5] = AddStaticVehicle(582,1271.69995117,-1549.69995117,13.69999981,270.00000000,2,1); // cnn kombi 1
CNNCar[6] = AddStaticVehicle(582,1271.59997559,-1544.30004883,13.69999981,270.00000000,2,1); // cnn kombi 2
CNNCar[7] = AddStaticVehicle(582,1271.59997559,-1555.40002441,13.69999981,270.00000000,2,1); // cnn kombi 3
CNNCar[8] = AddStaticVehicle(582,1221.09997559,-1529.09997559,13.69999981,206.00000000,2,1); // cnn kombi 4
CNNCar[9] = AddStaticVehicle(582,1220.59997559,-1541.59997559,13.69999981,205.99914551,2,1); // cnn kombi 5
CNNCar[9] = AddStaticVehicle(488,1250.59997559,-1543.90002441,62.20000076,0.00000000,-1,-1); //News Chopper


Ovo je sistem koji proverava kola:

if(newcar == NgCar[0] || newcar == NgCar[1] || newcar == NgCar[2] || newcar == NgCar[3] || newcar == NgCar[4] || newcar == NgCar[5] || newcar == NgCar[6] || newcar == NgCar[7] || newcar == NgCar[8] || newcar == NgCar[9])
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3){ }
else
{
    format(string, sizeof(string), "~b~ZANDARMERIJA");
                GameTextForPlayer(playerid, string, 3000, 5);
    RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}


A ovako dodajem pod new :

new NgCar[10];


U ovom modu neznam kako je definisan CarInfo , neki su mi govorili da povecam CarInfo ali izgleda da ovde nije definisan :)

Samo pomakni vozila ta Å¡to si ti dodavao na kraj toga djela gdje stavljas vozila, to ti je u skripti negdje definirano koji ID-ovi vozila su letjelice i ti kada si dodao ove si pomjesao.


Prodajem "AG-RP" GameMod, možete ga pogledati na Haimachi, upitom na PM.

Stavio sam ih na kraj ali se i dalje mesaju

Ok , nego mozes li mi samo objasniti zasto na kraju 3600 , posto je meni na kraju 3600 smao kod voizla za poslove :)

OVo mi izbaci kada stavim na kraju 3600

C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22794) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22795) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22796) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22797) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22798) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22799) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22800) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22801) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22802) : warning 202: number of arguments does not match definition
C:\Users\LUKA\Desktop\City Life RolePlay\gamemodes\CLRP.pwn(22803) : warning 202: number of arguments does not match definition

Kada sklonim normalno je , u ovom modu je nesto menjan sistem vozila , a u obicnom CLRP mogu da dodajem na kraju 3600 nema varninga

Molim vas pomoc , nebi trazio da mi netreba HITNO mi je , kola se brkaju , unapred hvala ;)

BUMP , oce reci neko jebu mi se kola , sry zbog DP


Citat: Jopsonee poslato Maj 31, 2012, 18:57:29 POSLE PODNE
Ovako se dodavaju vozila :

AddStaticVehicleEx(582,1220.59997559,-1541.59997559,13.69999981,205.99914551,2,1,3600)

Dodaješ na svaki kod to boldirano crveno

Nema to veze s vezom.. AddStaticVehicle je isto kao i AddStaticVehicleEx samo Å¡to u AddStaticVehicleEx odreÄ'ujeÅ¡ respawn vrijeme (tih 3600 milisekundi ti je zapravo 600 sekundi, a to je 10 minuta). Dodas auto koji se automatski respawna ako ga 10 minuta nitko ne vozi.

A sto se pomoci tice, savjetovo bi ti ovo:

Pobrises NgCar[10]; i dodas ovo:

new NgCar1, NgCar2;


Koristis ovako:

NgCar1 = AddStaticVehicle(425,2777.6633,-2346.7036,16.4631,0.8302,1,1);
AddStaticVehicle(427,2788.1379,-2455.5911,13.7654,90.8104,1,1);
AddStaticVehicle(430,2701.2568,-2305.8726,-0.3931,359.9283,1,1);
AddStaticVehicle(470,2738.5347,-2469.9470,13.6419,2.6267,1,1);
AddStaticVehicle(470,2743.1333,-2469.7756,13.6768,0.3328,1,1);
AddStaticVehicle(487,2792.0352,-2539.3735,16.0068,359.0394,1,1);
AddStaticVehicle(528,2788.1531,-2495.0039,13.6951,91.0180,1,1);
AddStaticVehicle(541,2738.1338,-2421.2314,13.2589,223.4454,1,1);
AddStaticVehicle(541,2737.8452,-2428.4690,13.2638,236.0337,1,1);
NgCar2 = AddStaticVehicle(541,2743.5730,-2447.1284,13.2709,328.2711,1,1);


I sad kod provjeravanja ti je puno lakse i korisnije ovako:


if(newcar >= NgCar1 && newcar <= NgCar2)



Nemam sad neta na kompu probaću čim stignem