09.11.2011, 16:28 
	
	
	
		hey everyone,
i made a dialog with the scripting machine but when i enter this under OnDialogResponse i get all kind of erros how to fix this...
and i get this errors:
pls help i want to fix this
	
	
	
	
i made a dialog with the scripting machine but when i enter this under OnDialogResponse i get all kind of erros how to fix this...
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 2){
      if(response){
         switch(listitem)){
         case 0:
         {
            //Selected Item: "/boatstunt"
         }
      else{
         //The player has pressed "ok".
         switch(listitem{
         case 0:
         {
            //Selected Item: "/boatstunt"
         }
   return 0;
}
Код:
F:\program files\my own drifting gamemode\filterscripts\CMDS.pwn(38) : error 001: expected token: "{", but found ")"
F:\program files\my own drifting gamemode\filterscripts\CMDS.pwn(39) : error 014: invalid statement; not in switch
F:\program files\my own drifting gamemode\filterscripts\CMDS.pwn(39) : warning 215: expression has no effect
F:\program files\my own drifting gamemode\filterscripts\CMDS.pwn(39) : error 001: expected token: ";", but found ":"
F:\program files\my own drifting gamemode\filterscripts\CMDS.pwn(39) : error 029: invalid expression, assumed zero
F:\program files\my own drifting gamemode\filterscripts\CMDS.pwn(39) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
5 Errors.






