Jump to content
  • 0

Problema masini pd


guess_who09

Question

9 answers to this question

Recommended Posts

la public isanownablecar este asa:

public IsAnOwnableCar(vehicleid)

{

if(vehicleid >= 1 && vehicleid <= 149) { return 1; }

return 0;

ce trebuie sa fac aici?

Inlocuiesi aici: if(vehicleid >= 1 && vehicleid <= 149) { return 1; }

Ce e ingrosat , adica care masini sa fie personale pui aici id-urile , de la masina X pana la Y.

Link to comment
Share on other sites

Inlocuiesi aici: if(vehicleid >= 1 && vehicleid <= 149) { return 1; }

Ce e ingrosat , adica care masini sa fie personale pui aici id-urile , de la masina X pana la Y.

de exemplu id 123 si 124 sunt de vanzare,pun asa? Inlocuiesi aici: if(vehicleid >= 1 && vehicleid <= 123,124) { return 1; } adica intre iduri la masini sa pun virgula?

muzika005.gif

Imi vreti id de mess? add ion.zamfirov sa mai vorbim.

Link to comment
Share on other sites

de exemplu id 123 si 124 sunt de vanzare,pun asa? Inlocuiesi aici: if(vehicleid >= 1 && vehicleid <= 123,124) { return 1; } adica intre iduri la masini sa pun virgula?

Nu de ex daca masinile de la 100 la 124 sunt de vanzare , pui : if(vehicleid >= 100 && vehicleid <= 149) { return 1; }

Si daca mai sunt si altele adaugi , daca nu sunt dupa ele si sa zicem ca e de la 200 pui asa: if(vehicleid >= 1 && vehicleid <= 149 || vehicleid >= 200 && vehicleid <= 250) { return 1; }

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By CenzoR
      Salut! Am problema cand intru in masina persoanala nu imi arata detalile acesteia, de ex cate zile are, km, culorile.
      Scriptul este deja pus in gamemode (nu este anulat)
      Ma poate ajuta cineva?
    • By TheGodfather
      Salut, masinile se respawneaza la un interval de timp daca cineva nu e in ele. Am pus peste tot unde e SetVehicleToRespawn() un mesaj unic, ca sa imi dau seama unde e problema. Dar cand masina se respawneaza nu apare niciun mesaj, tin sa mentionez ca mesajul e pus cu SendClientMessageToAll. Deci nu exista sansa sa se fi trimis si sa nu il fi vazut. Am gamemode hpq123 bhood.
    • By Lwka
      Hey! Am si eu nevoie de ajutor la comanda /bonus


      Cum pot acorda un vehicul temporar?
    • By St3f4n36
      Cum as putea fac urmatoarea chestie:
      Daca intr-un dialog imi apare ca primeste x bani daca apasa cazul 1 ( banii formati cu new money = 100 + rand(100); )
      si dupa sa imi trimita un mesaj tot cu aceasi suma de bani x. Trebuie salvata intr-o variabila sau cum?
    • By FlobertRO
      Buna , am si eu o problema . Mi-se restarteaza serverulul random . In server_log am gasit asta : 
      Stie cineva ce pot face  Va rog ❤️ . Multumesc frumos
       
       
      [23:17:26] [join] rezana has joined the server (1:---------------------) [23:17:26] [debug] Run time error 4: "Array index out of bounds" [23:17:26] [debug] Accessing element at index 1 past array upper bound 0 [23:17:26] [debug] AMX backtrace: [23:17:26] [debug] #0 00200b24 in ?? (... <1 argument>) at GM.pwn:8108 [23:17:26] [debug] #1 000aef80 in public MP_OPC (playerid=1) at C:\Users\xda\Desktop\gamemode-impact\gamemode-rpg-impact\pawno\include\YSI\y_hooks/impl.inc:633 [23:17:26] [debug] #2 native CallLocalFunction () from samp03svr [23:17:26] [debug] #3 0000c77c in public SSCANF_OnPlayerConnect (playerid=1) at C:\Users\xda\Desktop\gamemode-impact\gamemode-rpg-impact\pawno\include\mSelection.inc:432 [23:17:26] [debug] #4 00003210 in public Itter_OnPlayerConnect (playerid=1) at C:\Users\xda\Desktop\gamemode-impact\gamemode-rpg-impact\pawno\include\sscanf2.inc:236 [23:17:26] [debug] #5 00001684 in public OnPlayerConnect (playerid=1) at C:\Users\Florin\Dxda\gamemode-impact\gamemode-rpg-impact\pawno\include\YSI\y_iterate.inc:646
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.