sscanf problem.
#5

Quote:
Originally Posted by adammal
Посмотреть сообщение
I'm not quite sure I understand what you're trying to do, but why not use strcmp?

PHP код:
CMD:test_id(playeridparams[]) 

    new 
targetid[4];
    if(
sscanf(params,"s[4]"targetid)) return 1// exit
    
for(new i<= MAX_PLAYERSi++) {
        if(!
strcmp(targetidGetName(i), false4)) printf("Player's ID %i - Name: %s"iGetName(i)); }
    return 
1;

Because sscanf is better.
Reply


Messages In This Thread
sscanf problem. - by Dayrion - 11.11.2017, 01:33
Re: sscanf problem. - by JaydenJason - 11.11.2017, 01:35
Re: sscanf problem. - by Dayrion - 11.11.2017, 01:45
Re: sscanf problem. - by adammal - 11.11.2017, 05:29
Re: sscanf problem. - by Lucases - 11.11.2017, 05:54
Re: sscanf problem. - by Konstantinos - 11.11.2017, 08:37
Re: sscanf problem. - by Dayrion - 11.11.2017, 12:29
Re: sscanf problem. - by Dayrion - 12.11.2017, 13:20
Re: sscanf problem. - by Dayrion - 13.11.2017, 11:49
Re: sscanf problem. - by Dayrion - 14.11.2017, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)