01.05.2012, 16:53
That does seem like a missing brackets error, it could also be an error like,
stock CheckMaleOrFemale(Variable)
{
if(Variable == 1) return "Female";
return "Male";
}
Which would do the same thing.
What you do is type #error then compile, if you get a user error then nothing is wrong with the code from the top line to the "#error" line, do this on every line (or after every public/stock) till you figure out the error or reach the bottom of your script, then come back.
stock CheckMaleOrFemale(Variable)
{
if(Variable == 1) return "Female";
return "Male";
}
Which would do the same thing.
What you do is type #error then compile, if you get a user error then nothing is wrong with the code from the top line to the "#error" line, do this on every line (or after every public/stock) till you figure out the error or reach the bottom of your script, then come back.