Posts: 65
Threads: 1
Joined: Sep 2017
Quote:
Originally Posted by RogueDrifter
[PHP]
Also this doesn\'t make any sense:
PHP Code:
public OnFilterScriptInit() { for(new i = 0, x = 50; i < x; i++) SendClientMessageToAll(-1,"");
... ... ...
|
To add on to this:
PHP Code:
public OnFilterScriptInit()
{
for(new i = 0, x = 50; i < x; i++) 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 = 0; index < 20; index ++)
SendClientMessageToAll(-1, "");