Problem with strcat in dialogs
#2

pawn Код:
command(unimpoundmycar, playerid, params[])
{
    new status[64], string[128];
    format(string, sizeof(string), "%s (Impounded).\n", VehicleNamesNoID[Player[playerid][PlayerCarModel]-399]);
    strcat(status, string);
    format(string, sizeof(string), "%s (Impounded).\n", VehicleNamesNoID[Player[playerid][PlayerCarModel2]-399]);
    strcat(status, string);
    format(string, sizeof(string), "%s (Impounded).\n", VehicleNamesNoID[Player[playerid][PlayerCarModel3]-399]);
    strcat(status, string);
    ShowPlayerDialog(playerid,4589, DIALOG_STYLE_LIST, "Un-impound your car", status, "Select", "Cancel");
    return 1;
}
No need for 3 strings!
Reply


Messages In This Thread
Problem with strcat in dialogs - by Kestro - 01.04.2013, 10:37
Re: Problem with strcat in dialogs - by fiki574 - 01.04.2013, 10:41
Re: Problem with strcat in dialogs - by Denying - 01.04.2013, 10:41
Re: Problem with strcat in dialogs - by Kestro - 01.04.2013, 10:46
AW: Problem with strcat in dialogs - by Nero_3D - 01.04.2013, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)