Dialog Problem
#1

Hey Guys, i have one problem in my script, i've created LapTop system, i just created 3 msgboxes for fun, now here they are

pawn Код:
case DIALOG_laptop:
            {

                switch(listitem)
                {
                    case 0:
                    {
                        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, ""RED"Internet News - Laptop Windows 8", ""RED"Internet News From CONSTRUCTION Group\n{00FF00}Dear Civilians of Palonimo Creek! We got some nice News For you!\nWe have some great news, we are building Palonimo Creek Police Department's Building! This will bring more Safety for People\nIf You want to donate us some money, please use /charity\nWriten By {{Ekstazi}}", "Turn Off", "Turn Off");
                    }
                    case 1:
                    {
                        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, ""RED"Weather News - Laptop Windows 8", ""RED"Weather News [24/7]\n{00FF00}Dear Civilians in San Andreas!\nWeather in San Andreas will be fine Today and this week! There will be some Snow!\nWriten by Company 24/7", "Turn Off", "Turn Off");
                    case 2:
                    {
                        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Weather News - Laptop Windows 8", ""RED"Weather News [24/7]\n{00FF00}Dear Civilians in San Andreas!\nWeather in San Andreas will be fine Today and this week! There will be some Snow!\nWriten by Company 24/7", "Turn Off", "Turn Off");

                            }
                      }
                  }
            }
        return true;
        }
    return false;
}
But, when i try to convert it, it sends me error
pawn Код:
D:\Server\gamemodes\BSJ.pwn(3141) : error 014: invalid statement; not in switch
D:\Server\gamemodes\BSJ.pwn(3141) : warning 215: expression has no effect
D:\Server\gamemodes\BSJ.pwn(3141) : error 001: expected token: ";", but found ":"
D:\Server\gamemodes\BSJ.pwn(3141) : error 029: invalid expression, assumed zero
D:\Server\gamemodes\BSJ.pwn(3141) : fatal error 107: too many error messages on one line
Please, how to fix it?
Thanks
Repping all comments
Reply
#2

Case 1 No returns } And Is that script that out of line in ur gamemode?? or FilterScript Or Pawn is messed up heh
Reply
#3

pawn Код:
case DIALOG_laptop:
{
    if(response)
    {
        switch(listitem)
        {
             case 0: ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, ""RED"Internet News - Laptop Windows 8", ""RED"Internet News From CONSTRUCTION Group\n{00FF00}Dear Civilians of Palonimo Creek! We got some nice News For you!\nWe have some great news, we are building Palonimo Creek Police Department's Building! This will bring more Safety for People\nIf You want to donate us some money, please use /charity\nWriten By {{Ekstazi}}", "Turn Off", "Turn Off");
             
             case 1: ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, ""RED"Weather News - Laptop Windows 8", ""RED"Weather News [24/7]\n{00FF00}Dear Civilians in San Andreas!\nWeather in San Andreas will be fine Today and this week! There will be some Snow!\nWriten by Company 24/7", "Turn Off", "Turn Off");
             
             case 2: ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Weather News - Laptop Windows 8", ""RED"Weather News [24/7]\n{00FF00}Dear Civilians in San Andreas!\nWeather in San Andreas will be fine Today and this week! There will be some Snow!\nWriten by Company 24/7", "Turn Off", "Turn Off");
         }
    }
}
Reply
#4

Thanks both, repped, and its in mine script, didnt wanted to give all, soon i'm gonna release it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)