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

Quote:
Originally Posted by Lawbringer
Посмотреть сообщение
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.
I don't understand.Can you help a little more?With the 1. thing.Can you just send me script cuz really I don't understand.
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)