Scripting issue (easy to fix)
#3

pawn Код:
CMD:trackcar(playerid, params[])
{
    new str[500];
    new count=0;
    for (new i = 0; i < MAX_DYNAMIC_CARS; i++)
    {
        if(Car_IsOwner(playerid, i))
        {
            new float:fX,float:fY,float:fZ;
            GetVehiclePos(CarData[i][carVehicle], fX, fY, fZ);
            new str2[128];
            format(str2,sizeof(str2)," %s | Location: %d %d %d\n", ReturnVehicleModelName(CarData[i][carModel]),fX,FY,FZ);
            strcat(str, str2);
            count++;
        }
    }
    if(count==0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "You don't own any vehicles.");
    }
    else
    {
        ShowPlayerDialog(playerid, 557,DIALOG_STYLE_LIST,"Select a car to get it's location",str,"Track","Exit");
    }
    return 1;
}
Reply


Messages In This Thread
Scripting issue (easy to fix) - by manishmulchandani01 - 20.01.2016, 09:20
Re: Scripting issue (easy to fix) - by FreAkeD - 20.01.2016, 09:31
Re: Scripting issue (easy to fix) - by KillerStrike23 - 20.01.2016, 13:06
Re: Scripting issue (easy to fix) - by saffierr - 20.01.2016, 13:21
Re: Scripting issue (easy to fix) - by RoboN1X - 20.01.2016, 13:26
Re: Scripting issue (easy to fix) - by AbyssMorgan - 20.01.2016, 13:31
Re: Scripting issue (easy to fix) - by manishmulchandani01 - 20.01.2016, 16:17
Re: Scripting issue (easy to fix) - by manishmulchandani01 - 20.01.2016, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)