Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
21.09.2017, 05:35
(
Последний раз редактировалось Toroi; 21.09.2017 в 19:00.
)
What else do you need? You're using all the functions you need already.
Add a SendClientMessage to each one of the ids (playerid and id) with the respective message on it.
Also, for the records: INVALID_PLAYER_ID is translated to 65535 or some number like that after compiling. That means you're checking if id equals to 65535, dumb, right? Use IsPlayerConnected(id) instead. (False statement as pointed in Logic_'s totally friendly reply)
Posts: 1,506
Threads: 13
Joined: Jun 2015
Quote:
Originally Posted by Toroi
Also, for the records: INVALID_PLAYER_ID is translated to 65535 or some number like that after compiling. That means you're checking if id equals to 65535, dumb, right? Use IsPlayerConnected(id) instead.
|
What the fuck are you even saying... When a player is not connected, the Sscanf returns the value of 'playerid' as INVALID_PLAYER_ID (65535) which is constant at all conditions and it's far more easier and faster to compare two values rather than using a different function, which will absolutely do the same.
Posts: 155
Threads: 36
Joined: Oct 2016
Reputation:
0
Toroi if i use IsPlayerConnected i will do it on strtok instead but i choose not to the point is i want to combinw dcmd and sscanf for in my opinion is the best option for me also forgot to mention about Bolex_ help ty so much bro i tested it out with my friend and it worked 100% no bug no crash no nothing it wasnt hard to make this command i madi it fast