Hook Saytext Help
It might look like a strange scripting help request
but what i am trying to do is divide the saytext by player character by character Like we just hook test and print like PHP Code:
2 things now. 1) Suppose i say hello it should print in chat like |h|e|l|l|o| 2) Suppose i say "hey how are you" it prints in chat like |hey |how |are |you Anyone got ideas ? |
Re: Hook Saytext Help
There's no practical use for the code that would be needed to do these things.
Therefor you should ask what you really need. (Use formatex instead of format) Code:
Code:
Code:
string: helloCode:
Code:
string: hey how are you |
Re: Hook Saytext Help
"x03" is not a character constant. You are basically printing that as text.
How do you display the text? Code:
"Test string" -> "Test ^0^4string" or "Test ^0^0^3string" or "Test ^0^0^1string" This will of course print "Test " since strings are null terminated meaning the function printing the message will stop reading the input once it hits ^0 (a.k.a. 0, null or EOS). Only increment once. Code:
If you ever are in doubt when using strings, print them like an array to debug. Code:
|
Re: Hook Saytext Help
Thanks man learning so much from your posts and explanations !! Finally .. :) Credits to you :) Plugin Working fine now.
HaiL Black Rose :mrgreen: |
| All times are GMT -4. The time now is 19:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.