11.01.2014, 01:27
You are concatenating strings and new lines together, the "ShowModelSelectionMenuEx" works by looping through integers in each index - so try this:
pawn Код:
CMD:search(playerid, params[])
{
new
items,
string[128],
arrSearch[100]
;
if (isnull(params))
return UsageMessage(pid, "/search [query]");
for (new i = 0; i != MAX_OBJECTS && items < sizeof(arrSearch); i ++)
{
if (strfind(allObjects[i][arname], params, true) != -1)
{
arrSearch[items++] = allObjects[i][arid];
}
}
ShowModelSelectionMenuEx(playerid, arrSearch, items, "Search Results", Search);
return 1;
}
