20.09.2017, 20:42
Hi! I use Optimus gamemode, and i going to add a Toys System of "SuperRoleplay" GM.
I defined "DIALOG_PLAYER_TOYS" by enum, with other dialogs.
I use the "DIALOG_PLAYER_TOYS" in two publics: "ShowDialog(playerid)" and "OnDialogResponse".
The error is in other dialog:
Line:
So, up (above) of this code, i put the dialog "DIALOG_PLAYER_TOYS"
Wtf is wrong on this? :/
Thanks
I defined "DIALOG_PLAYER_TOYS" by enum, with other dialogs.
I use the "DIALOG_PLAYER_TOYS" in two publics: "ShowDialog(playerid)" and "OnDialogResponse".
The error is in other dialog:
Код:
C:\Users\Dello\Desktop\Contenedor\Optimus-Roleplay-V3-master\gamemodes\backup 12-9-17\ajam\optimusv3.pwn(22486) : error 040: duplicate "case" label (value 1) C:\Users\Dello\Desktop\Contenedor\Optimus-Roleplay-V3-master\gamemodes\backup 12-9-17\ajam\optimusv3.pwn(26261) : error 040: duplicate "case" label (value 2)
PHP код:
//22486 case dRegistro:
//22487 {
PHP код:
case DIALOG_PLAYER_TOYS:
{
if(response)
{
if(listitem == MAX_PLAYER_ATTACHED_OBJECTS) return ShowDialog(playerid, DIALOG_PLAYER_TOY_DELETE_ALL);
if(0 < InfoJugador[playerid][jCuentaSU] && listitem >= MAX_NU_TOYS)
{
SendClientMessageEx(playerid, -1, "{CCCCCC}ЎLos jugadores {b1fc6f}VIP {CCCCCC}pueden tener hasta %d accesorios! Usa {fffb49}/ayuda {CCCCCC}si quieres ser {b1fc6f}VIP.", MAX_PLAYER_ATTACHED_OBJECTS);
ShowDialog(playerid, dialogid);
return 1;
}
PLAYER_TEMP[playerid][pt_SELECTED_TOY_SLOT] = listitem;
ShowDialog(playerid, DIALOG_PLAYER_TOY_MENU_DYO);
}
return 1;
}
Thanks