Help with String
Hello guys, i've got a little problems with my plugin, when someone say "Yakada", it should reply "yes" but actually, its always replying "nop", even when i say perfectly "Yakada":
Code:
public OnPluginStart() |
Re: Help with String
https://sm.alliedmods.net/new-api/co...etCmdArgString
You are getting the whole command "say Yakada", instead of just "Yakada", that's what ``GetCmdArgString`` does. You need to use ``GetCmdArg`` and pass the correct argument position to get "Yakada". Next time you could try to print the contents of your string before writing a thread and save yourself some time. |
Re: Help with String
Btw you might want to start by learning the new syntax, instead of the old one, since it could get deprecated in the future.
|
Re: Help with String
Didn't tested anything...
Btw, now is in new syntax... PHP Code:
|
Re: Help with String
You can just use this instead of manually hooking say https://sm.alliedmods.net/new-api/co...ientSayCommand
|
All times are GMT -4. The time now is 23:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.