sscanf problem.
#7

Quote:

Basically, if an array of size "N" is passed, this code will return the first N-1 results. If there are less than "N" players whose name matches the given name then that many players will be returned and the next slot will be "INVALID_PLAYER_ID" to indicate the end of the list

Alright! My problem still. Only the first player is detected (as we can see). I missunderstood something I think.
Let's take this basic command with freeze a player. If two players have the same first name, only the lower ID will get 'detected'.
PHP код:
CMD:test_freeze(playeridparams[])
{
    
extract params -> new player:targetid; else return Usage(playerid"/freeze [name/id]");
    
CheckIsValidPlayer(targetid); // isplayerconnected + isplayernpc
    
TogglePlayerControllableEx(targetid0);
    return 
1;

By the way, the code in my first post was for debugging only. I wanted to know if sscanf detect every player with the same first name (on a rp server), and most of it doesn't.
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)