Thread: [Solved] Error 159
View Single Post
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 10-09-2018 , 14:08   Re: Error 159
Reply With Quote #4

Quote:
Originally Posted by xerox8521 View Post
Instead of using AddCommandListener for say / say_team you should just use OnClientSayCommand

Where command is either say or say_team and sArgs contains the whole message
Both are command listeners and do pretty much the same, altough on AddCommandListener you pass the command as one of the parameters, where as on OnClientSayCommand, you'd still have to run a check for the command that has been runned.

EDIT:

I know the thread has been solved and that this is irrelevant, just had to say it.

Last edited by mug1wara; 10-09-2018 at 14:10.
mug1wara is offline