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.
×
×
  • 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.