LorDSG Posted June 14, 2013 Report Share Posted June 14, 2013 Cum pot face sa am ID-urile fixe la masini ?Mereu cand adaug niste masini noi pe server se schimba ID-urile la mai multe si mi se incurca masinile de la factiuni,rent etc. Link to comment Share on other sites More sharing options...
KAPSu Posted June 14, 2013 Report Share Posted June 14, 2013 Ai cumva sistem de masini personale ? Cel din urma va fi cel dintâi. Link to comment Share on other sites More sharing options...
LorDSG Posted June 14, 2013 Author Report Share Posted June 14, 2013 Da.Dar este unul cu /buycar , /buybike , /buyheli .Spune-mi ce linii sa-ti dau (in caz ca ai nevoie) Link to comment Share on other sites More sharing options...
alex12alex Posted June 14, 2013 Report Share Posted June 14, 2013 Am avut si eu problema asta cand adaugam masini mi se modificau id descarca editor samp dai adauga obiect cauti id de la o masina o pui unde vrei si dai show code dai copi la ce ai pus tu si le adaugi in gm merge sigur daca lucrezi pe un gf Link to comment Share on other sites More sharing options...
LorDSG Posted June 14, 2013 Author Report Share Posted June 14, 2013 E un GameMode RolePlay.. Link to comment Share on other sites More sharing options...
alex12alex Posted June 14, 2013 Report Share Posted June 14, 2013 Incearca cum ti-am zis eu sigur o sa-ti mearga Link to comment Share on other sites More sharing options...
MAC1 Posted June 14, 2013 Report Share Posted June 14, 2013 Poti folosi: new gCars[MAX_VEHICLES]; public OnGameModeInit( ) { gCars[0] = AddStaticVehicle(params); // masina factiune X gCars[1] = AddStaticVehicle(params); // masina factiune Y ... gCars[n] = AddStaticVehicle(params); // masina rent } Foloseste si comentarii pentru fiecare linie, sa nu uiti pentru ce e fiecare masina. Iar apoi, daca ai de exemplu o functie: IsATowCar(carid), schimbi in: stock IsATowCar(carid) { if(carid == gCars[n] || carid == gCars[k]) return 1; return 0; } unde gCars[n] si gCars[k] sunt masini de tractat puse de tine in OnGameModeInit( ).Asa nu se vor incurca niciodata id-urile. Link to comment Share on other sites More sharing options...
Mihaitza. Posted June 14, 2013 Report Share Posted June 14, 2013 Sau mai simplu, incepi si definesti fiecare masina. Ex.:CreateVehicle(a,b,c...); Trece in:Nume = CreateVehicle(a,b,c...);Apoi modifici asta in locul IDului din joc a masinii, dar pentru ca e un edit... o sa te chinui asa mereu. Link to comment Share on other sites More sharing options...
alex12alex Posted June 14, 2013 Report Share Posted June 14, 2013 myhaitza eu ce iam zis Link to comment Share on other sites More sharing options...
Mihaitza. Posted June 14, 2013 Report Share Posted June 14, 2013 Tu gandesti la ce ai scris acolo si la ce problema are el?Am avut si eu problema asta cand adaugam masini mi se modificau id descarca editor samp dai adauga obiect cauti id de la o masina o pui unde vrei si dai show code dai copi la ce ai pus tu si le adaugi in gm merge sigur daca lucrezi pe un gf * copy , nu copi. Link to comment Share on other sites More sharing options...
Gireada Posted June 14, 2013 Report Share Posted June 14, 2013 Nu stiu de ce va certati voi si deviati de la subiect omul a intrebat cum sa aiba id la masini fixe.Ca sa revinPentru a avea id fixe tu trebuie sa adaugi codul de la vehicul dupa ultimul AddStaticVehicleEx sau AddStaticVehicle sau CreateVehicle.Exemplu:AvemAddStaticVehicleEX(.............); //ID 100Si vrem sa adaugam inca un vehiculFunctiile vor arata astfelAddStaticVehicleEX(.............); //ID 100AddStaticVehicleEX(.............); //ID 101Si tot asaAddStaticVehicleEX(.............); //ID 100AddStaticVehicleEX(.............); //ID 101AddStaticVehicleEX(.............); //ID 102AddStaticVehicleEX(.............); //ID 103AddStaticVehicleEX(.............); //ID 104AddStaticVehicleEX(.............); //ID 105AddStaticVehicleEX(.............); //ID 106Iar ID-urile care nu se schimba sunt cele care sunt pana la 100. Dupa ce ai adaugat vehiculele noi trebuie sa configurezi sistemul de vehicule personale astfel incat sa nu se incurce id-urile Link to comment Share on other sites More sharing options...
LorDSG Posted June 14, 2013 Author Report Share Posted June 14, 2013 Scuza-ma ca te intreb,dar trebuie neaparat sa pun // ID x dupa ce adaug masinile ? Link to comment Share on other sites More sharing options...
FredelArnold Posted June 14, 2013 Report Share Posted June 14, 2013 Dap Trebuie <a href="http://www.game-state.eu/93.119.26.9:7777/"><img src="http://www.game-state.eu/93.119.26.9:7777/FFFFFF/FFFFFF/n-560x95.png" alt="www.Game-State.eu" style="border-style: none;" /></a> Link to comment Share on other sites More sharing options...
Gireada Posted June 15, 2013 Report Share Posted June 15, 2013 Dap TrebuieTu nu te baga daca nu stii ce e alaScuza-ma ca te intreb,dar trebuie neaparat sa pun // ID x dupa ce adaug masinile ?Nu nu trebuie sa pui asa, dar cu aia poti tine evidenta id-urilor la vehicule, sa nu te incurci. Link to comment Share on other sites More sharing options...
FredelArnold Posted June 15, 2013 Report Share Posted June 15, 2013 Tu nu te baga daca nu stii ce e alaNu nu trebuie sa pui asa, dar cu aia poti tine evidenta id-urilor la vehicule, sa nu te incurci.parca nu trebuia ) io nu stiu ce e ala )) <a href="http://www.game-state.eu/93.119.26.9:7777/"><img src="http://www.game-state.eu/93.119.26.9:7777/FFFFFF/FFFFFF/n-560x95.png" alt="www.Game-State.eu" style="border-style: none;" /></a> Link to comment Share on other sites More sharing options...
Question
LorDSG
Cum pot face sa am ID-urile fixe la masini ?
Mereu cand adaug niste masini noi pe server se schimba ID-urile la mai multe si mi se incurca masinile de la factiuni,rent etc.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts