in_array() function
#1

Is there some function for in Pawno to check if a value is in the array ?


example:
Array for bad nicknames: Fuck, ass, pussy, boobies, admin, administrator

if (!in_array(mynick, array))
{
// Good nick
}
Reply
#2

try the bad_names filterscript
look in my signature
Reply
#3

Quote:
Originally Posted by ► James_Alex
try the bad_names filterscript
look in my signature
Yeah, check my signature too!
</deLUX>

I suppose the nearest to in_array would to actually loop through the array.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)