/kill
#4

Quote:
Originally Posted by BeckzyBoi
2) Both strcmp and OnPlayerCommandText are meant to return boolean values, so why state one in strcmp but then return a standard integer?
strcmp's return value is not boolean.

Quote:
Originally Posted by BeckzyBoi
5) When getting the player's name, why are you using sizeof(pName) instead of just MAX_PLAYER_NAME or even the value of MAX_PLAYER_NAME which is 24. There is no point in making it work out the size when you can just simply state it instead.
There is a point: flexibility. You know why, as explained in another thread. Both sizeof() and MAX_PLAYER_NAME are resolved at compile time. You should take advantage of the fact that the compiler will figure stuff out for you.
Reply


Messages In This Thread
/kill - by carljohno - 18.11.2007, 14:48
Re: /kill - by weedarr - 18.11.2007, 14:51
Re: /kill - by BeckzyBoi - 18.11.2007, 16:37
Re: /kill - by IJzerenRita - 18.11.2007, 16:47
Re: /kill - by weedarr - 18.11.2007, 16:49
Re: /kill - by carljohno - 18.11.2007, 17:06
Re: /kill - by BeckzyBoi - 18.11.2007, 17:43
Re: /kill - by Grove - 18.11.2007, 19:46
Re: /kill - by BeckzyBoi - 18.11.2007, 20:43
Re: /kill - by Brad - 18.11.2007, 20:49

Forum Jump:


Users browsing this thread: