Change font size
It is currently Wed Feb 26, 2020 4:00 am

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 2 of 2   [ 11 posts ]
Go to page Previous  1, 2
Author Message
 Post subject: Re: Listener with two messages
PostPosted: Wed Feb 05, 2020 1:10 am 
Furious Typer
User avatar

Joined: Fri Mar 26, 2010 12:11 pm
Posts: 273
Location: Belgium / Brussels
Hi, the problem I indicated to you was not the spaces but earlier the fact of declaring the same variable twice.
A first time as a global variable and a second time as a local variable.
This is not a good thing in this case because here you only need to declare a global variable.
(ie, a variable whose scope extends in all the script).
Some info about it can be found @ LSL Variables (Scope of variables).

Spaces are just a good practice, it ventilates the script, makes it more readable, easier to detect errors etc ...
If you take the right habits directly then these are no longer constraints, it just becomes a good habit.
But you already know that :)

_________________
Webmaster @ digitalconcepts.free.fr & digigrids.free.fr


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 2 of 2   [ 11 posts ]
Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net