#1

Hello!
pawn Code:
error 040: duplicate "case" label (value 1008)
error 040: duplicate "case" label (value 1009)
error 040: duplicate "case" label (value 1010)
error 040: duplicate "case" label (value 1011)

Lines

case DialogPadurarJobMethod: Dialog_PadurarSelectJobMethod(playerid, response, listitem); // The work- dialog for truckers (shows the loads he can carry and lets the player choose the load)
case DialogPadurarSelectLoad: Dialog_PadurarSelectLoad(playerid, response, listitem); // The load- selection dialog for truckers (shows the startlocations for the selected load and let the player choose his startlocation)
case DialogPadurarStartLoc: Dialog_TruckerSelectStartLoc(playerid, response, listitem); // The start-location dialog for truckers (shows the endlocations for the selected load and let the player choose his endlocation)
case DialogPadurarEndLoc: Dialog_TruckerSelectEndLoc(playerid, response, listitem); // The end-location dialog for truckers (processes the selected endlocation and starts the job)
Reply
#2

Some of the dialogs have been defined with the same dialogid. Define them with another dialogid.
Reply
#3

Konstantinos please show me
Reply
#4

you already have case DialogPadurarJobMethod:
somewhere else there
Reply
#5

I'll give you an example:
pawn Код:
#define DIALOG_A 100
#define DIALOG_B 100

// OnDialogResponse:
switch(dialogid)
{
    case DIALOG_A: // code
    case DIALOG_B: // code
}
As you can see DIALOG_A and DIALOG_B have the same dialogid (100) and the compiler gives error that it duplicates the "case" label.

Just change the numbers:
pawn Код:
#define DialogPadurarJobMethod 2056
#define DialogPadurarSelectLoad 2057
#define DialogPadurarStartLoc 2058
#define DialogPadurarEndLoc 2059
If they're used, change them again.
Reply
#6

not working(((( PPC_Trucking Mods
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)