problem with zcmd and vehicle respawn.
#4

Did you use debug info? It doesn't say why it crashed, it says only the public function:
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;
}
By the way, use:
pawn Код:
CMD:remontuoti(playerid, params[])
because maybe if you use parameters (an example: "/remontuoti blabla") it can cause it (not sure).
Reply


Messages In This Thread
problem with zcmd and vehicle respawn. - by WuPoR - 05.03.2014, 18:06
Re: problem with zcmd and vehicle respawn. - by Konstantinos - 05.03.2014, 18:25
Re: problem with zcmd and vehicle respawn. - by WuPoR - 05.03.2014, 18:39
Re: problem with zcmd and vehicle respawn. - by Konstantinos - 05.03.2014, 18:54
Re: problem with zcmd and vehicle respawn. - by XK - 05.03.2014, 19:20
Re: problem with zcmd and vehicle respawn. - by WuPoR - 06.03.2014, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)