error 014: invalid statement; not in switch
#4

Read the error message. "Default:" needs to be in a switch.
Example:
pawn Код:
switch(Something)
    {
        case 1:
        {
            // Do something
        }
        case 2:
        {
            // Do something
        }
        default:
        {
            // Do something
        }
Not entirely sure about logstring, you could maybe try moving this
pawn Код:
new logstring[128];
down just above the logstring error.
The last warning, again im not sure, but you can try removing
pawn Код:
query[128]
Like this
pawn Код:
new field[256], DBResult:result;
    result = db_query(MailDB, "SELECT * FROM `Letters`"); // line 124464
    if (db_num_rows(result) != 0)
    {
Reply


Messages In This Thread
error 014: invalid statement; not in switch - by AlirezaG - 30.12.2014, 17:44
Re: error 014: invalid statement; not in switch - by AlirezaG - 31.12.2014, 06:24
Re: error 014: invalid statement; not in switch - by AlirezaG - 31.12.2014, 10:31
Re: error 014: invalid statement; not in switch - by CalvinC - 31.12.2014, 10:51
Re: error 014: invalid statement; not in switch - by AlirezaG - 31.12.2014, 17:34
Re: error 014: invalid statement; not in switch - by CalvinC - 31.12.2014, 18:00

Forum Jump:


Users browsing this thread: 4 Guest(s)