24.10.2013, 11:54
Hello I working on when I buy a bike (bike,bmx,mountain bike) I can't get their's id I try everything but in the file is nothing write in description if you know what I mean. Look:
the problem is in the code:
pawn Код:
new bi = GetFreeBiID();
if(PlayerInfo[playerid][Biciklo] == -1) PlayerInfo[playerid][Biciklo] = bi;
NovacMinus(playerid, hBiraCenaKes[playerid]);
PodesiBiciklo(playerid, bi);
new hqwIme[MAX_PLAYER_NAME];
RPIme(playerid, hqwIme);
BInfo[bi][bhModel] = 509;
BInfo[bi][bhBoja1] = 0;
BInfo[bi][bhBoja2] = 0;
strmid(BInfo[bi][bhVlasnik], hqwIme, 0, strlen(hqwIme), 255);
strmid(BInfo[bi][bhDescription], ImenaVozila[GetVehicleModel(BInfo[playerid][bhModel]) - 400], 0, strlen(ImenaVozila[GetVehicleModel(BInfo[playerid][bhModel]) - 400]), 255);
BInfo[bi][bck] = 9500;
BInfo[bi][bhImaVlasnika] = 1;
BInfo[bi][bhZakljucan] = 0;
PlayerInfo[playerid][BicikloZakljucano] = 0;
SCM(playerid, BELA,"Cestitamo na kupovini bicikla!");
SCM(playerid, BELA,"Komande su: /bi(ciklo)!");
SCM(playerid, ZUTA,"Ovo je vasa prva kupnja. Da kreirate vase biciklo, kucajte /bi kreiraj!");
VozilaUSalonu--;
IgracevoBiciklo[playerid] = bi;
pawn Код:
strmid(BInfo[bi][bhDescription], ImenaVozila[GetVehicleModel(BInfo[playerid][bhModel]) - 400], 0, strlen(ImenaVozila[GetVehicleModel(BInfo[playerid][bhModel]) - 400]), 255);

