funcidx("OnPlayerCommandReceived") != -1; Whats != -1 for?
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
When you're not sure what an expression does, add the brackets that are implicit in operator precedence:
...
zcmd_g_HasOPCS = (42 != -1);
...
Thanks if i had thought of the funcidx call as a number instead of a function i would have got that. I get it now thanks.

@ Killer i get why it's assigned just didn't get the "!= -1" part. Thanks for reply
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)