2 Problems.. Need Fast Solution
#5

I changed else if(dialogid) bla bla

to case 0: etc.

it Gives me This Error:

Код:
E:\server0\gamemodes\gm4.pwn(6714) : error 002: only a single statement (or expression) can follow each "case"
and lines
pawn Код:
switch(dialogid)
  {
    case 111:
    {
    if(!response)
      {
      switch(listitem)
       {
       case 0:
       {
       ShowPlayerDialog(playerid, 222, DIALOG_STYLE_LIST,"Base Jumps","Base Jump 1\nBase Jump 2\nBase Jump 3\nBase Jump 4\nBase Jump 5","Teleport","Close");
       }
       case 1:
       {
       ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Stunts","MiniStunt\nLas Venturas Stunt\nLos Santos Stunts\nCrazy Loop\nParkourMaddness\nMiniRollerCoster\nMount Chiliad Stunts\nMullholand\nPershing Square\nBay Side","Teleport","Close");
       }
       case 2:
       {
       ShowPlayerDialog(playerid, 444, DIALOG_STYLE_LIST,"HotSpots","Saint Maria Beach\nGroveStreet\nSaint Marks\nUnity Stations\nMaddogs Mansion","Teleport","Close");
       }
       case 3:
       {
       ShowPlayerDialog(playerid, 555, DIALOG_STYLE_LIST,"Cities","Los Santos\nLas Venturas\nSan Fierro","Teleport","Close");
       }
       case 4:
       {
       ShowPlayerDialog(playerid, 666, DIALOG_STYLE_LIST,"Crazy Roads","Crazy Loop\nDisco Road\nCrazy Glass Road\nLong Drive","Teleport","Close");
       }
       case 5:
       {
       ShowPlayerDialog(playerid, 777, DIALOG_STYLE_LIST,"Interiors","Saint Marks\nCity Hall\nBank\nHospital\nLVPD\nLSPD\nSFPD","Teleport","Close");
       }
       case 6:
       {
       ShowPlayerDialog(playerid, 888, DIALOG_STYLE_LIST,"Derby","Las Venturas Derby\nLos Santos Derby\nQuarry Derby\nSan Fierro Derby","Teleport","Close");
       }
       case 7:
       {
       ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST,"Drift","Las Venturas Drift\nDrift\nSan Fierro Drift\nLos Santos Drift","Teleport","Close");
       return 1;
       }
   }
}
return 0;
}
Reply


Messages In This Thread
Help Needed with Dialog Response. - by Jarnu - 10.06.2012, 06:51
Re: 2 Problems.. Need Fast Solution - by JaKe Elite - 10.06.2012, 07:12
Re: 2 Problems.. Need Fast Solution - by Jarnu - 10.06.2012, 07:16
Re: 2 Problems.. Need Fast Solution - by MP2 - 10.06.2012, 07:20
Re: 2 Problems.. Need Fast Solution - by Jarnu - 10.06.2012, 08:45
Re : 2 Problems.. Need Fast Solution - by ricardo178 - 10.06.2012, 09:33
Re: 2 Problems.. Need Fast Solution - by Jarnu - 10.06.2012, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)