Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (
/showthread.php?tid=469270)
Help meee -
asdarmando - 12.10.2013
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)
Re: Help -
Konstantinos - 12.10.2013
Some of the dialogs have been defined with the same dialogid. Define them with another dialogid.
Re: Help -
asdarmando - 12.10.2013
Konstantinos please show me
Re: Help -
whatthefuck123 - 12.10.2013
you already have case DialogPadurarJobMethod:
somewhere else there
Re: Help -
Konstantinos - 12.10.2013
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.
Re: Help -
asdarmando - 12.10.2013
not working

(((( PPC_Trucking Mods