To get all the players into a 'list' use this:
function getPlayerList()
{
for(%i=0;(%row=NPL_List.getrowtext(%i))!$="";%i++)
{
%name = getField(%row,1);
if(%list$="")
%list = %name;
else
%list = %list TAB %name;
}
return %list;
}
Then to search the string made by that function use this:
function findField(%sourceString,%searchString,%offset)
{
%count = getFieldCount(%sourceString);
if(%offset > %count || %offset $= "")
%offset = 0;
for(%i=%offset;%i<%count;%i++)
{
%field = getField(%sourceString,%i);
if(%field $= %searchString)
return %i;
}
return -1;
}
Hope that helped and sorry for spoon feeding, I was bored..