05.03.2014, 18:54
Did you use debug info? It doesn't say why it crashed, it says only the public function:
By the way, use:
because maybe if you use parameters (an example: "/remontuoti blabla") it can cause it (not sure).
pawn Код:
CMD:remontuoti(playerid)
{
if(pDT[playerid][pMasina] == -1) return SendClientMessage(playerid, RED,"* ** You didn't have a car!");
new v = pDT[playerid][pMasina],// pMasina means player Car
kaina = ShopVehicles[v][Price]/2,
s[ 128 ];
if(vDT[v][death])
{
format(s,sizeof(s),"{FFFFFF}Jūsų transporto priemonės taisymas kainuos{FF0000}%i{FFFFFF}LT\nAr tikrai norite susiremontuoti transportą?",kaina);
ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX,"Transporto remontas",s,"Remontuoti","Atšaukti");
}
else SendClientMessage(playerid, RED,"* ** Car isn't death!");
return 1;
}
pawn Код:
CMD:remontuoti(playerid, params[])