OnPlayerCommandReceived Question
#5

Quote:
Originally Posted by maximthepain
Посмотреть сообщение
I think i'll go with the compering strings method. Thanks.



Lets say i have 150 commands, you suggest instead using this on one public, i should do it on all the 150 commands?
Well, are you going to compare 150 strings everytime a player types a command, and make "zcmd commands into strcmp commands"? And yes, I suggest adding it to the commands, it would be better and somehow more efficient.
Reply


Messages In This Thread
OnPlayerCommandReceived Question - by maximthepain - 27.03.2015, 14:45
Re: OnPlayerCommandReceived Question - by Konstantinos - 27.03.2015, 14:47
Re: OnPlayerCommandReceived Question - by SickAttack - 27.03.2015, 14:48
Re: OnPlayerCommandReceived Question - by maximthepain - 27.03.2015, 14:50
Re: OnPlayerCommandReceived Question - by SickAttack - 27.03.2015, 14:53
Re: OnPlayerCommandReceived Question - by Konstantinos - 27.03.2015, 14:55
Re: OnPlayerCommandReceived Question - by SickAttack - 27.03.2015, 15:01
Re: OnPlayerCommandReceived Question - by Konstantinos - 27.03.2015, 15:07
Re: OnPlayerCommandReceived Question - by SickAttack - 27.03.2015, 15:10
Re: OnPlayerCommandReceived Question - by maximthepain - 27.03.2015, 15:16

Forum Jump:


Users browsing this thread: 2 Guest(s)