Lista vozila

Započeo statham.3
14. Maj 2018. Zaključano
2,230
pregleda
33
postova
Lazar Milojevic
5
Kingpin
14. Maj 2018.
Problem(error/warning): Imam edit nekog OS moda i sad kad kupim auto i kad kucam /v list nece mi pokaze vozilo koje imam evo vam komande kupovine vozila i komanda lista vozila
Dio skripte
://
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/G0DPgE1
Adam_Lay
6
Underboss
14. Maj 2018.
Daj nam fino
Dio skripte://

A ne u slici,napravi debug poruke pa vidi gdje zapinje,najbolje
Lazar Milojevic
5
Kingpin
14. Maj 2018.
@Paul Castellano  evo ti list komanda taj deo
else if(strcmp(vehicle, "list", true) == 0)
{
    new carkey = PlayerInfo;
new carkey2 = PlayerInfo;
new carkey3 = PlayerInfo;
if(PlayerInfo == -1 && PlayerInfo == -1 && PlayerInfo == -1)
{
  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozila ]----------------------------------");
    SendClientMessage(playerid, BELA2,"  Nemate nijedno vozilo!");
    SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
      return 1;
}
    else
{
  SendClientMessage(playerid, COLOR_RED," ");
  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozilaa ]----------------------------------");
  if (PlayerInfo != -1)
{
    new string;
format(string, sizeof(string), "{BFC0C2} 1.SLOT| Model:[%s]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%s] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo),VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
SendClientMessage(playerid, -1, string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string), "{BFC0C2} 2.SLOT| Model:[%s]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%s] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo), VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
SendClientMessage(playerid, -1,string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string), "{BFC0C2} 3.SLOT| Model:[%s]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%s] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo), VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
SendClientMessage(playerid, -1,string);
}
            SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
}
}
return 1;
}
Adam_Lay
6
Underboss
14. Maj 2018.
Najbolje zalijepi ovo,i onda kucaj na serveru opet komandu /v list i samo nam ovdje daj debug poruke(iz server loga)
else if(strcmp(vehicle, "list", true) == 0)
{
    new carkey = PlayerInfo;
new carkey2 = PlayerInfo;
new carkey3 = PlayerInfo;
printf("%d | %d | %d",carkey,carkey2,carkey3);
if(PlayerInfo == -1 && PlayerInfo == -1 && PlayerInfo == -1)
{
  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozila ]----------------------------------");
    SendClientMessage(playerid, BELA2,"  Nemate nijedno vozilo!");
    SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
      return 1;
}
    else
{
  SendClientMessage(playerid, COLOR_RED," ");
  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozilaa ]----------------------------------");
  if (PlayerInfo != -1)
{
    new string;
format(string, sizeof(string), "{BFC0C2} 1.SLOT| Model:[%s]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%s] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo),VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
printf("%s",string);
SendClientMessage(playerid, -1, string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string), "{BFC0C2} 2.SLOT| Model:[%s]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%s] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo), VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
printf("%s",string);
SendClientMessage(playerid, -1,string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string), "{BFC0C2} 3.SLOT| Model:[%s]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%s] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo), VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
printf("%s",string);
SendClientMessage(playerid, -1,string);
}
            SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
}
}
return 1;
}
Lazar Milojevic
5
Kingpin
14. Maj 2018.
@Paul Castellano  izadje ovo u server log ali na srv isti problem komande ne radi
[11:32:38] Lazar_Moreno has joined the server (0:127.0.0.1)
[11:32:39] timer-49
[11:32:59] 94 | -1 | -1
[11:32:59] {BFC0C2} 1.SLOT| Model:[›ˇ*P&Lazar_Moreno]  Cena:  Tablice:[ON SALE] Boja 1 ID:  Boja 2 ID:  Zakljucano:[] Neaktivnost Registrovano jos
[11:33:01] 94 | -1 | -1
[11:33:01] {BFC0C2} 1.SLOT| Model:[›ˇ*P&Lazar_Moreno]  Cena:  Tablice:[ON SALE] Boja 1 ID:  Boja 2 ID:  Zakljucano:[] Neaktivnost Registrovano jos
[11:33:08] Svim online korisnicima racuni uspesno sacuvani...
Adam_Lay
6
Underboss
14. Maj 2018.
else if(strcmp(vehicle, "list", true) == 0)
{
    new carkey = PlayerInfo;
new carkey2 = PlayerInfo;
new carkey3 = PlayerInfo;
printf("%d | %d | %d",carkey,carkey2,carkey3);
if(PlayerInfo == -1 && PlayerInfo == -1 && PlayerInfo == -1)
{
  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozila ]----------------------------------");
    SendClientMessage(playerid, BELA2,"  Nemate nijedno vozilo!");
    SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
      return 1;
}
    else
{
  SendClientMessage(playerid, COLOR_RED," ");
  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozilaa ]----------------------------------");
  if (PlayerInfo != -1)
{
    new string;
format(string, sizeof(string), "{BFC0C2} 1.SLOT| Model:[%d]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%d] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo),VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
printf("%s",string);
SendClientMessage(playerid, -1, string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string), "{BFC0C2} 2.SLOT| Model:[%d]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%d] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo), VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
printf("%s",string);
SendClientMessage(playerid, -1,string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string), "{BFC0C2} 3.SLOT| Model:[%d]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%d] Neaktivnost Registrovano jos", VoziloInfo, ceneAuta(VoziloInfo), VoziloInfo, VoziloInfo, VoziloInfo, VoziloInfo);
printf("%s",string);
SendClientMessage(playerid, -1,string);
}
            SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
}
}
return 1;
}
Lazar Milojevic
5
Kingpin
14. Maj 2018.
nece isti problem ponovo
Adam_Lay
6
Underboss
14. Maj 2018.
Moren0 wrote on May 14, 2018, 9:45 am:
nece isti problem ponovo


debug poruke

EDIT: Usput sad vidim cak i kad bi normalno poruka ispisavala tebi bi bio prevelika,maksimalno je 128 a ti imaš 138. http://prntscr.com/jhm2fm

Znači izbaci Neaktivnost i Registrovan,ako već nemaš
Lazar Milojevic
5
Kingpin
14. Maj 2018.
@Paul Castellano  radi ali ne ispisuje lepo pogledaj  https://imgur.com/a/u70hZHW
Rax_King
5
Godfather
14. Maj 2018.
Model:[%d]
VoziloInfo

Da li u vModel "cuvas" string ili id motela vozila
Lazar Milojevic
5
Kingpin
14. Maj 2018.
@.ксундер brate slabo te razumem poslacu ti sve slike gde se nalazi vmodel  http://prntscr.com/jhsjr5  http://prntscr.com/jhsjww  http://prntscr.com/jhsk0q evo brate slabo te razumem
Lazar Milojevic
5
Kingpin
14. Maj 2018.
!Izvinjavam se za pump evo ti i ovo http://prntscr.com/jhsw9c
Coox
4
Enforcer
14. Maj 2018.
.ксундер wrote on May 14, 2018, 10:46 am:
Model:[%d]
VoziloInfo

Da li u vModel "cuvas" string ili id motela vozila


Integer je nije string. Ja mislim da je preko if statementa odradjena imena vozila.
Lazar Milojevic
5
Kingpin
14. Maj 2018.
@Salesman Pa sta sad da radim ?
Rax_King
5
Godfather
14. Maj 2018.

else if(strcmp(vehicle, "list", true) == 0)
{
    new carkey = PlayerInfo;
new carkey2 = PlayerInfo;
new carkey3 = PlayerInfo;
printf("%d | %d | %d",carkey,carkey2,carkey3);
if(PlayerInfo == -1 && PlayerInfo == -1 && PlayerInfo == -1)
{
SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozila ]----------------------------------");
SendClientMessage(playerid, BELA2,"  Nemate nijedno vozilo!");
SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED," ");
SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista vozilaa ]----------------------------------");
if (PlayerInfo != -1)
{
    new string;
format(string, sizeof(string),
"{BFC0C2} 1.SLOT| Model:[%d]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%d] Neaktivnost Registrovano jos",
VoziloInfo,
ceneAuta(VoziloInfo),
VoziloInfo,
VoziloInfo,
VoziloInfo,
VoziloInfo
);
printf("%s",string);
SendClientMessage(playerid, -1, string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string),
"{BFC0C2} 2.SLOT| Model:[%d]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%d] Neaktivnost Registrovano jos",
VoziloInfo,
ceneAuta(VoziloInfo),
VoziloInfo,
VoziloInfo,
VoziloInfo,
VoziloInfo
);
printf("%s",string);
SendClientMessage(playerid, -1,string);
}
if (PlayerInfo != -1)
{
new string;
format(string, sizeof(string),
"{BFC0C2} 3.SLOT| Model:[%d]  Cena:[%d]  Tablice:[%s] Boja 1 ID:[%d]  Boja 2 ID:[%d]  Zakljucano:[%d] Neaktivnost Registrovano jos",
VoziloInfo,
ceneAuta(VoziloInfo),
VoziloInfo,
VoziloInfo,
VoziloInfo,
VoziloInfo
);
printf("%s",string);
SendClientMessage(playerid, -1,string);
}
SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
}
}


Probaj ovako, ako ti smeta sto sam ja ovako poodvajao tabom skloni (to ja da mi bude preglednije).
Ako ne bude radilo posalji sta ispisuje u server_log.txt

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha