Dialogs Not Opening.
#1

I have been working with dialogs for a while now, never had any type of problem like this. So i'm using a trucking system. it had menus in it, i kinda re-wrote the code, but im not releasing it. Ok, so i changed the menus to dialogs. Here is the main dialog:

pawn Код:
if(dialogid == Trucking)
    {
        if(response)
        {
            if(listitem == 0) GameTextForPlayer(playerid, "~y~Type the new name ~n~in the chat~", 999999, 3); SpecialAction[playerid] = CHANGE_NAME;
            if(listitem == 1) GameTextForPlayer(playerid, "~y~Are you sure you want this location as new startposition? ~n~~g~/yes ~y~or ~r~/no", 999999, 3); Question = 1;
            if(listitem == 2) GameTextForPlayer(playerid, "~y~Are you sure you want this location as new finishposition? ~n~~g~/yes ~y~or ~r~/no", 999999, 3); Question = 2;
            if(listitem == 3) GameTextForPlayer(playerid, "~y~Type the new Checkpointsize ~n~in the chat~", 999999, 3); SpecialAction[playerid] = CHANGE_CPSIZE;
            if(listitem == 4) GameTextForPlayer(playerid, "~y~Type the new Prize ~n~in the chat~", 999999, 3); SpecialAction[playerid] = CHANGE_PRIZE;
            if(listitem == 5) GameTextForPlayer(playerid, "~y~Type the new model-id ~n~in the chat~", 999999, 3); SpecialAction[playerid] = CHANGE_MODEL;
            if(listitem == 6)
            {
                GameTextForPlayer(playerid, "~y~Highscores resetted!", 3000, 4);
                MissionInfo[EditMissionID][Highscore] = 999999;
                format(MissionInfo[EditMissionID][HighscoreName], 24, "Nobody");
                ShowDialogList(playerid,Trucking,"Truck Mission Editor","Change Mission Name\nSet Start Position\nSet Finish Position\nChange CheckPoint Size\nChange Prize\nChange Truck Model\nReset High Scores\nView Mission Info\nReload Mission\nUse Trailer\nChange Trailer Model\nChange Truck Color\nSet Time Limit","Select","Cancel");
            }
            if(listitem == 7) GetMissionInfo(playerid, EditMissionID); ShowDialogList(playerid,Trucking,"Truck Mission Editor","Change Mission Name\nSet Start Position\nSet Finish Position\nChange CheckPoint Size\nChange Prize\nChange Truck Model\nReset High Scores\nView Mission Info\nReload Mission\nUse Trailer\nChange Trailer Model\nChange Truck Color\nSet Time Limit","Select","Cancel");
            if(listitem == 8)
            {
                new ID = EditMissionID;
                DestroyVehicle(Truck[ID]);
                Truck[ID] = CreateVehicle(MissionInfo[ID][TruckModel], MissionInfo[ID][StartX], MissionInfo[ID][StartY], MissionInfo[ID][StartZ]+2, MissionInfo[ID][StartAngle], MissionInfo[ID][TruckColor1],MissionInfo[ID][TruckColor2], 600000);
                ShowDialogList(playerid,Trucking,"Truck Mission Editor","Change Mission Name\nSet Start Position\nSet Finish Position\nChange CheckPoint Size\nChange Prize\nChange Truck Model\nReset High Scores\nView Mission Info\nReload Mission\nUse Trailer\nChange Trailer Model\nChange Truck Color\nSet Time Limit","Select","Cancel");
            }
            if(listitem == 9) ShowDialogList(playerid,Trucking+1,"Use Trailer In Mission?","Yes\nNo","Select","Cancel");
            if(listitem == 10) GameTextForPlayer(playerid, "~y~Typ the new model-id ~n~in the chat~", 999999, 3); SpecialAction[playerid] = CHANGE_TRAILER;
            if(listitem == 11) ShowDialogList(playerid,Trucking+2,"Color Menu For Trucks","Change Color 1\nChange Color 2\nShow Color IDs","Select","Cancel");
            if(listitem == 12) GameTextForPlayer(playerid, "~y~Typ the new time-limit ~n~(in seconds!) ~n~in the chat~", 999999, 3); SpecialAction[playerid] = CHANGE_TIMELIMIT;
        }
    }
and this is Trucking+1
pawn Код:
if(dialogid == Trucking+1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowDialogList(playerid,Trucking,"Truck Mission Editor","Change Mission Name\nSet Start Position\nSet Finish Position\nChange CheckPoint Size\nChange Prize\nChange Truck Model\nReset High Scores\nView Mission Info\nReload Mission\nUse Trailer\nChange Trailer Model\nChange Truck Color\nSet Time Limit","Select","Cancel");
                MissionInfo[EditMissionID][UseTrailer] = 1;
                SendClientMessage(playerid, COLOR_YELLOW, "Using a trailer is now enabled for this mission!");
            }
            if(listitem == 1)
            {
                ShowDialogList(playerid,Trucking,"Truck Mission Editor","Change Mission Name\nSet Start Position\nSet Finish Position\nChange CheckPoint Size\nChange Prize\nChange Truck Model\nReset High Scores\nView Mission Info\nReload Mission\nUse Trailer\nChange Trailer Model\nChange Truck Color\nSet Time Limit","Select","Cancel");
                MissionInfo[EditMissionID][UseTrailer] = 0;
                SendClientMessage(playerid, COLOR_YELLOW, "Using a trailer is now disabled for this mission!");
            }
        }
        else ShowDialogList(playerid,Trucking,"Truck Mission Editor","Change Mission Name\nSet Start Position\nSet Finish Position\nChange CheckPointSize\nChange Prize\nChange TruckModel\nReset HighScores\nView Mission Info\nReload Mission\nUse Trailer\nChange TrailerModel\nChange Truck Color\nSet TimeLimit","Select","Cancel");
    }
The other Trucking+2 is kinda the same, so no need to post.

Ok, That is the way i deal with dialogs, and they always work. Im now wondering why in hell they aren't showing. I doubled check for problems but didn't find any.
Reply
#2

Thanx for the help everyone ( sarcasm ) but i got it working xD
Reply
#3

Hm, your attempting to make a trucking server huh? Good luck with the competition, between Convoy Trucking (Im an Admin, muhahahaha) and TruckMania (which sucks), I think its good enough. Good luck though!
Reply
#4

is not only trucking, im going to also add towing missions, etc,etc.. but you know just to start off
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)