11.11.2017, 05:29
I'm not quite sure I understand what you're trying to do, but why not use strcmp?
PHP код:
CMD:test_id(playerid, params[])
{
new targetid[4];
if(sscanf(params,"s[4]", targetid)) return 1; // exit
for(new i; i <= MAX_PLAYERS; i++) {
if(!strcmp(targetid, GetName(i), false, 4)) printf("Player's ID %i - Name: %s", i, GetName(i)); }
return 1;
}