How can I do it ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can I do it ? (
/showthread.php?tid=480383)
How can I do it ? -
GuyYahood1 - 10.12.2013
Hello all,
Can I do if player wrote command in other language, that's replace the words to my language in letter of keyboard.
example:
Player do /SSsAdgh
In my language he do /דדדשגעי
I try do it and im stuck:
PHP код:
if(strlen(cmdtext) == A)return strlen(cmdtext) = ש
Re: How can I do it ? -
GuyYahood1 - 10.12.2013



??
Re: How can I do it ? -
xVIP3Rx - 10.12.2013
Use
strcmp
Re: How can I do it ? -
GuyYahood1 - 10.12.2013
can you give me example?
Re: How can I do it ? -
xVIP3Rx - 10.12.2013
pawn Код:
if(!strcmp(TEXT, "A") return "B" // You might use strfind if it's more then a word too
Re: How can I do it ? -
phiferindia - 11.12.2013

sorry i am lil bit confused
Re: How can I do it ? - Astralis - 11.12.2013
Quote:
Originally Posted by phiferindia
|
That was if you say "A" in chat it will change it to "B".
Re: How can I do it ? -
GuyYahood1 - 13.12.2013
Don't working.....
Re: How can I do it ? -
RajatPawar - 13.12.2013
https://sampforum.blast.hk/showthread.php?tid=479169
This's a good plugin for whatever you're trying to do!
Other helpful topics:
https://sampforum.blast.hk/showthread.php?tid=170547