07.05.2017, 17:10
hey I have this
for a reason it is showing me the header but it is looping it with the cars
like this
http://imgur.com/a/2ubMW
how to fix that plz help
PHP код:
CMD:resetcar(playerid, params[])
{
new str[128], str2[256];
if(PlayerVehicles(playerid) < 1) return SendClientMessage2(playerid, COLOR_RED, "Error: You do not own a vehicle!");
for(new ipv=0; ipv<MaxOwnVehs(playerid); ipv++)
{
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
format(str, sizeof(str), "V_%s_%d", str, ipv);
if(dini_Exists(AddDirFile(dir_carfiles, str)))
{
format(str2, sizeof(str2), "Model\tLocation\n%s\n%s\n",str2, vehName[dini_Int(AddDirFile(dir_carfiles, str), "model")-400]);
ShowPlayerDialog2(playerid, DIALOG_RESETCAR, DIALOG_STYLE_TABLIST_HEADERS, "Select a car", str2, "Select", "Cancel");
}
}
return 1;
}
like this
http://imgur.com/a/2ubMW
how to fix that plz help