21.07.2009, 20:15
in pawn-lang.pdf I read that #error is used for displaying user errors when compiling.
I tried to use this in one of my plugins, but I seem to need some help with this:
this is how I tried to use it, but the error just always appears.
can anyone please give me an example of how I can do this? thanks in advance.
I tried to use this in one of my plugins, but I seem to need some help with this:
Code:
stock F_SetMenuTitleBoxColor(menuid, color) { if(MenuInfo[menuid][UsedMenu] == true) { TextDrawBoxColor(MenuInfo[menuid][T_Title], color); return 1; } else { #error menuid doesn't exist. return 0; } }
can anyone please give me an example of how I can do this? thanks in advance.