[y_hooks] invalid function or declaration error...
#1

I have got this include:
pawn Код:
#include <a_samp>
#include <YSI\y_hooks>
#define WeatherDialog 400

hook OnDialogResponse (playerid, dialogid, response, listitem, inputtext[]) // LINE 5
{
    if(dialogid == WeatherDialog) { //LINE 7
        switch(listitem) //LINE 8
        {
            case 0 : { //LINE 10
                SetWeather (0 ) ;
            }
            case 1 : { //LINE 13
                SetWeather (8 ) ;
            }
            case 2 : { //LINE 16
                SetWeather (9 ) ;
            }
            case 3 : { //LINE 19
                SetWeather (19 ) ;
            }
            case 4 : { //LINE 22
                SetWeather (20 ) ;
            }
            case 5 : { //LINE 25
                SetWeather (16 ) ;
            }
            case 6 : { //LINE 28
                SetWeather (39 ) ;
            }
            case 7 : { //LINE 31
                SetWeather (2009 ) ;
            }
            case 8 : { //LINE 34
                SetWeather (2012 ) ;
            }
            case 9 : { //LINE 37
                SetWeather (32 ) ;
            }
        }
    }
    return 1; //LINE 42
}
And I receive these errors:

pawn Код:
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(5) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(7) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(8) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(10) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(13) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(16) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(19) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(22) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(25) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(28) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(31) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(34) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(37) : error 010: invalid function or declaration
C:\Users\introzen\Desktop\samp server\pawno\include\weatherdialog.inc(42) : error 010: invalid function or declaration
Any help appreciated.
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Probably the space after the function name.
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)