Posts: 626
Threads: 46
Joined: Oct 2014
Reputation:
0
both are same for me if I am not wrong. But if they have any difference then it will be 1 to 2 ms.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Theoretically they're two different things because the first one returns the value returned by SendClientMessage (which is usually 1) while the other one just returns 0.
For readability reasons, however, I prefer to always put a return statement on a line of its own. I don't even begin to read code that's all crammed together with zero whitespace (= spaces, tab, or newlines).
Posts: 579
Threads: 5
Joined: Oct 2015
I prefer using this:
PHP код:
extract params -> new player:id, amount; else return SendClientMessage(playerid, -1, "Lol invalid params you naaaaap");
Anyways, no need to open brackets or shits for a simple thing, just one line is enough.