I need some d*m* HELP [++REP]
#4

Sounds like you have a scope error.

Scope is basically the thing you're coding inside of. Whether that's an IF statement, CASE, a FUNCTION or if it is a GLOBAL/STATIC-access.

For example:
Код:
new red = 0;
if(red == 0)
{
  new blue = 2;
}
else
{
  blue = 1; // This would throw an error because blue is not defined in the scope of this ELSE container
}
In your case, file is not defined in that scope. So, here's what you can do --
1. Move the file handle up so it covers more than one scope (and subsequently covers the working scope)... or
2. Create a new file handle called file and use that handle to pass to the function.
Reply


Messages In This Thread
I need some d*m* HELP [++REP] - by Kruno88 - 04.01.2015, 15:49
Re: I need some d*m* HELP [++REP] - by Lordzy - 04.01.2015, 15:52
Re: I need some d*m* HELP [++REP] - by Kruno88 - 04.01.2015, 16:19
Re: I need some d*m* HELP [++REP] - by Lawbringer - 04.01.2015, 16:26
Re: I need some d*m* HELP [++REP] - by Kruno88 - 04.01.2015, 16:38
Re: I need some d*m* HELP [++REP] - by Kruno88 - 04.01.2015, 17:10
Re: I need some d*m* HELP [++REP] - by Lawbringer - 04.01.2015, 19:36
Re: I need some d*m* HELP [++REP] - by Kruno88 - 05.01.2015, 08:57

Forum Jump:


Users browsing this thread: 1 Guest(s)