Blockland Forums > Modification Help
Flood Protection
<< < (2/5) > >>
otto-san:
package the function spamAlert and add stuff to do when it's called

if you don't get how to do this, then ask around more
General:

--- Quote from: otto-san on July 24, 2010, 01:15:19 PM ---package the function spamAlert and add stuff to do when it's called

if you don't get how to do this, then ask around more

--- End quote ---
I know what you mean, but how can you "else" a function?
otto-san:
if(%cake)
{
  echo("oh hey look cake");
}
else
{
  echo("oh thats disappointing");
}
General:

--- Quote from: otto-san on July 24, 2010, 01:26:39 PM ---if(%cake)
{
  echo("oh hey look cake");
}
else
{
  echo("oh thats disappointing");
}

--- End quote ---
I've tried that, as I mentioned in the main post...

EDIT: What I ment is how can you "else" a function like "function spamAlert(%client)"
Kalphiter:
You don't know what you're doing.
spamAlert() is just meant to turn their flood protection on, and its not supposed to be a value.
Navigation
Message Index
Next page
Previous page

Go to full version