It says variable isn't used, although it is.
#6

Quote:
Originally Posted by Dinoo
Посмотреть сообщение
I am actually using that variable though arn't I? I using it to tell the script whether the game is in progress or not.

It will be used to tell users that are trying to join whether or not they can join because it is progress or not
Well, technically you are setting it there to 0, which can be considered as being "used". But you aren't actually using the value within in.

Example:
pawn Код:
if(game) // if game is not 0
if(!game) // if game is 0
There's no use in giving it a value, if the value itself isn't going to be used whatsoever.
Reply


Messages In This Thread
It says variable isn't used, although it is. - by Dinoo - 27.03.2016, 16:04
Re: It says variable isn't used, although it is. - by Konstantinos - 27.03.2016, 16:12
Re: It says variable isn't used, although it is. - by Dinoo - 27.03.2016, 16:32
Re: It says variable isn't used, although it is. - by SickAttack - 27.03.2016, 16:53
Re: It says variable isn't used, although it is. - by Dinoo - 27.03.2016, 17:20
Re: It says variable isn't used, although it is. - by SickAttack - 27.03.2016, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)