Is there a smarter way to do this ?
#7

SSCANF searches for the player with the specified ID/name (only with 'u', 'q' and 'r'). So, checking it against a constant value IS more efficient. Moreover, doing the search again with IsPlayerConnected is redundant and basically means repetitive code which should be avoided at all times.
Reply


Messages In This Thread
Is there a smarter way to do this ? - by NeXoR - 28.10.2016, 08:54
Re: Is there a smarter way to do this ? - by oMa37 - 28.10.2016, 09:14
Re: Is there a smarter way to do this ? - by NeXoR - 28.10.2016, 09:22
Re: Is there a smarter way to do this ? - by oMa37 - 28.10.2016, 10:17
Re: Is there a smarter way to do this ? - by Threshold - 28.10.2016, 11:13
Re: Is there a smarter way to do this ? - by oMa37 - 28.10.2016, 11:21
Re: Is there a smarter way to do this ? - by AndySedeyn - 28.10.2016, 11:32
Re: Is there a smarter way to do this ? - by Threshold - 28.10.2016, 13:14

Forum Jump:


Users browsing this thread: 3 Guest(s)