Array help
#1

Hi i was wondering how to make something like that
for(i=0;i<25;i++)
{
String = something;
}
if(Array[playerid][String]) // String is array key name
Reply
#2

Are you looking for something that checks if a string matches any of the strings in the array?
Reply
#3

Yes, like check if it in array and i can use Array[playerid][String] value
in PHP it would be:
$value= "something";
if($array[playerid][$value])
Reply
#4

You could check out Westies strlib include here, it has some useful functions
Reply
#5

Example?
Reply
#6

I don't think you can do it in pawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)