2806
Modification Help / Re: Big number library?
« on: August 22, 2016, 10:46:04 PM »
How's progress going?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.



When you connect to the server too many times in a specific time the server blocks you from connecting to it. You can always PM me about this and I can unblock you.This is a server mod, not all servers will do this
The --- means the server is probably down.That's one, but it can also be that the server wasn't forwarded correctly to get a ping, yet you can still connect to it if you get lucky
someone get badspot on this lulzhe's not needed right now unless cloudflare blocks you
function hasItemOnList(%list, %item)
{
if(getWordCount(%list) <= 0)
return false;
for(%i = 0; %i < getWordCount(%list); %i++)
{
%word = getWord(%list, %i);
if(%word $= %item)
return true;
}
return false;
}
function addItemToList(%list, %item)
{
if(hasItemOnList(%list, %item))
return %list;
%list = trim(%list SPC %item);
return %list;
}
function removeItemFromList(%list, %item)
{
for(%i = 0; %i < getWordCount(%list); %i++)
{
%word = getWord(%list, %i);
if(%word $= %item)
{
%list = removeWord(%list, %i);
return %list;
}
}
return %list;
}if(hasItemOnList($list, "playerone"))
{
//do stuff
}Note: If you're checking for a player name this may not work if someone's name has more than 1 word