Error [REP+] - 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: Error [REP+] (
/showthread.php?tid=583174)
Error [REP+] -
SecretBoss - 26.07.2015
Hey, I am getting this error
Код:
error 040: duplicate "case" label (value 20016)
My script
Код:
case DIALOG_AMMU:
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid, 25, 99999); // Shotgun
}
case 1:
{
GivePlayerWeapon(playerid, 26, 99999); // Sawn-Off
}
case 2:
{
GivePlayerWeapon(playerid, 27, 99999); // Combat Shotgun
}
}
}
Any idea on how to fix it?
Re: Error [REP+] -
gurmani11 - 26.07.2015
Specify the line
Mean while check this
if you have it twice in
Re: Error [REP+] -
SecretBoss - 26.07.2015
Quote:
Originally Posted by gurmani11
Specify the line
Mean while check this
if you have it twice in
|
I checked it many times and its nothing found
Re: Error [REP+] -
SickAttack - 26.07.2015
You have two or more values within "switch(dialogid)" that possess the value of 20,016.
For example:
pawn Код:
#define DIALOG_AMMU 20016
#define DIALOG_CLICKIN 20016
Re: Error [REP+] -
SecretBoss - 26.07.2015
Quote:
Originally Posted by SickAttack
You have two or more values within "switch(dialogid)" that possess the value of 20,016.
For example:
pawn Код:
#define DIALOG_AMMU 20016 #define DIALOG_CLICKIN 20016
|
Oh thats it, thanks I forgot to change it when I copied the defines