15.07.2014, 11:45
Код:
(740) : error 040: duplicate "case" label (value 1)
Код:
case DCLASS: { if(!response) return ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Vбlassz kategуriбt","Assault\nSniper\nSupporter","Kivбlaszt",""); if(response) { if(listitem == 0) { ResetPlayerWeapons(playerid); gClass[playerid] = ASSAULT; GivePlayerWeapon(playerid,24,150); GivePlayerWeapon(playerid,31,300); GivePlayerWeapon(playerid,29,200); SendClientMessage(playerid,COLOR_GREEN,"[INFO]: Kivбlasztott kategуria, Assault."); pInfo[playerid][pRank] = 0; } if(listitem == 1) { ResetPlayerWeapons(playerid); gClass[playerid] = SNIPER; GivePlayerWeapon(playerid,24,150); GivePlayerWeapon(playerid,29,200); GivePlayerWeapon(playerid,34,200); SendClientMessage(playerid,COLOR_GREEN,"[INFO]: Kivбlasztott kategуria, Sniper."); pInfo[playerid][pRank] = 1; } if(listitem == 2) { ResetPlayerWeapons(playerid); SendClientMessage(playerid,COLOR_GREEN,"[INFO]: Kivбlasztott kategуria, Support."); GivePlayerWeapon(playerid,25,200); GivePlayerWeapon(playerid,29,200); GivePlayerWeapon(playerid,24,150); gClass[playerid] = SUPPORT; pInfo[playerid][pRank] = 2; } } } <<<<<<<<<<<<<<ERROR case DIALOG_VASARLAS: { if(!response) return 1; if(response) { if(listitem == 0) { SetPlayerArmour(playerid,100); SendClientMessage(playerid,COLOR_GREEN,"[INFO]: Sikeres vбsбrlбs! Pбncйlzat megvйve!"); pInfo[playerid][Penz] -= 15000; } if(listitem == 1) { SetPlayerHealth(playerid,100); SendClientMessage(playerid,COLOR_GREEN,"[INFO]: Sikeres vбsбrlбs! Йlet megvйve!"); pInfo[playerid][Penz] -= 10000; } if(listitem == 2) { GivePlayerWeapon(playerid,16,3); SendClientMessage(playerid,COLOR_GREEN,"[INFO]: Sikeres vбsбrlбs! Grбnбt megvйve!"); pInfo[playerid][Penz] -= 30000; } } } return 1; }