Command help
#1

hey I have this
PHP код:
CMD:resetcar(playeridparams[])
{
    new 
str[128], str2[256];
    if(
PlayerVehicles(playerid) < 1) return SendClientMessage2(playeridCOLOR_RED"Error: You do not own a vehicle!");
    for(new 
ipv=0ipv<MaxOwnVehs(playerid); ipv++)
    {
        
GetPlayerName(playeridstrMAX_PLAYER_NAME);
        
format(strsizeof(str), "V_%s_%d"stripv);
        if(
dini_Exists(AddDirFile(dir_carfilesstr)))
        {
            
format(str2sizeof(str2), "Model\tLocation\n%s\n%s\n",str2vehName[dini_Int(AddDirFile(dir_carfilesstr), "model")-400]);
            
ShowPlayerDialog2(playeridDIALOG_RESETCARDIALOG_STYLE_TABLIST_HEADERS"Select a car"str2"Select""Cancel");
        }
    }
    return 
1;

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
Reply
#2

Try using DIALOG_STYLE_LIST instead of DIALOG_STYLE_TABLIST_HEADERS
Reply
#3

I tried but I want the header I didn't say I don't need it
Reply
#4

anyways nvm I fixed it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)