[y_hooks] invalid function or declaration error... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [y_hooks] invalid function or declaration error... (
/showthread.php?tid=448041)
[y_hooks] invalid function or declaration error... -
introzen - 02.07.2013
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.
Re: [y_hooks] invalid function or declaration error... -
introzen - 02.07.2013
Quote:
Originally Posted by ******
Probably the space after the function name.
|
Thank you.