View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-20-2018 , 13:01   Re: "Client X is not connected" directly after IsClientConnected
Reply With Quote #5

StealthGus,

1) as far as I know from C++, 'continue' command in 'for' cycles mean skipping all lines until last scope of "for" command and starting new iteration, so EmitSoundToClient will be skipped if IsClientConnected is not connected or if fake client. So,
your code example should be a functionally analogue. Would you like to say that "continue" behaviour is somehow different in SourcePawn?

2) How
Code:
(1) && (2)
considered in SourcePawn: will (2) be called if (1) is false ?
Dragokas is offline