07.08.2010, 16:27
Well the most warnings mean that you're creating 2 string variables in the same instance. Check at the top of your script to see if you defined a global variable called string, if you did, either delete that, or better, delete all of the ones created locally in functions.
Expression as no effect is usually related to an incorrect check, like this
It should be
So go to those lines and take a look
Symbol is never used or symbol is assigned a value that is never used, means that you ever use the variables, so either delete them, or put them to use. I suspect that it's showing this because of the last warning I told you about, where you probably do
and it should be ==.
number of arguments does not match definition, this means that you have written functions and have not put enough arguments in them, or have put too many arguments in them. Go to the lines, check the correct usage of the function and you'll know why.
function "LottoTimer" should return a value, this means that your function "LottoTimer", doesn't return anything. Just add a return 1; to the end of it.
public function lacks forward declaration (symbol "Health"), this means that you haven't forwarded the callback. All public functions require forwarding, use the following at the top of your script.
Anyway, warnings are a big deal, some of these warnings will mean parts of your code doesn't even do anything, like the expression has no effect, the code there will do nothing. So you should be aiming to compile with no warnings at all.
Expression as no effect is usually related to an incorrect check, like this
pawn Код:
if(var = var)
pawn Код:
if(var == var)
Symbol is never used or symbol is assigned a value that is never used, means that you ever use the variables, so either delete them, or put them to use. I suspect that it's showing this because of the last warning I told you about, where you probably do
pawn Код:
if(DragTime = something)
number of arguments does not match definition, this means that you have written functions and have not put enough arguments in them, or have put too many arguments in them. Go to the lines, check the correct usage of the function and you'll know why.
function "LottoTimer" should return a value, this means that your function "LottoTimer", doesn't return anything. Just add a return 1; to the end of it.
public function lacks forward declaration (symbol "Health"), this means that you haven't forwarded the callback. All public functions require forwarding, use the following at the top of your script.
pawn Код:
forward Health(...yourstuff)
![Smiley](images/smilies/smile.png)