Problem with dialog [ REP ++] easy but hard to me
#2

pawn Code:
CMD:myvehicles(playerid,params[])
{
        new string[800];
        format(string, sizeof(string), "%s\n", VehicleNames[playerVariables[playerid][pCarModel1] - 400]);
        format(string, sizeof(string), "%s%s\n", string, VehicleNames[playerVariables[playerid][pCarModel2] - 400]);
        format(string, sizeof(string), "%s%s\n", string, VehicleNames[playerVariables[playerid][pCarModel3] - 400]);
        format(string, sizeof(string), "%s%s\n", string, VehicleNames[playerVariables[playerid][pCarModel4] - 400]);
        ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "Your personal vehicles", string, "Ok", "Close");
        return 1;

}
Try this. Does this method work? If so, Don't forget to rep++ .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)