[FilterScript] Dennis12's Attachments Object Editor
#7

Quote:
Originally Posted by RogueDrifter
View Post
[PHP]


Also this doesn\'t make any sense:
PHP Code:
public OnFilterScriptInit()
{
    for(new 
050xi++) SendClientMessageToAll(-1,""); 


... ... ...
To add on to this:



PHP Code:
public OnFilterScriptInit()
{
    for(new 
050xi++) SendClientMessageToAll(-1,""); 
Even though that snippet is the most useless thing I\'ve ever seen: to properly clear off the, you only need to send 20 blank client messages as (/pagesize) is cut out from 10 to 20, and since x is a constant integer, you don\'t need to create a second hand variable. and third: don\'t name your variables by a single character, just write the whole word, in this case I\'d call it an index.

PHP Code:
public OnFilterScriptInit()
{
    for(new 
index 0index 20index ++)
        
SendClientMessageToAll(-1""); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)