Chat Text Error/ExplodingImploding String
I've been trying to create a rainbow effect with my text and I'm now having a problem. Everytime I try to run this code it works fine until the PrintToChat "Test2".
If I moved that print to chat above where the for loop is then it will show but after the for loop nothing else runs. Code:
if(strcmp(buffer, "1") == 0 && pos <= -1 || pos > 1 ){ |
Re: Chat Text Error/ExplodingImploding String
PHP Code:
|
Re: Chat Text Error/ExplodingImploding String
You probably have any error in your logs which is preventing execution after your for loop.
|
Re: Chat Text Error/ExplodingImploding String
Quote:
|
Re: Chat Text Error/ExplodingImploding String
Whats the error?
|
Re: Chat Text Error/ExplodingImploding String
Sorry the Logs from my server is showing an error from using the GetRandomColours and the C_SplitString...
Just to ask you incase I may have applied it incorrectly but I just put a string into the GetRandomColours right? Updated Code: Code:
//Chat |
Re: Chat Text Error/ExplodingImploding String
You'll have to post the error. This is the code I use exactly in my plugin and it works fine.
|
Re: Chat Text Error/ExplodingImploding String
I just needed to increase stack size.
|
Re: Chat Text Error/ExplodingImploding String
One problem now is that your random colours sometimes cause the words to go to the next line in chat and also remove the first few characters.. Etc
For example. Input: Why do you want a quiz? Output: o you want a quiz |
Re: Chat Text Error/ExplodingImploding String
Just tested it out and it works fine for me. http://i.imgur.com/pjqgyvQ.jpg
Also suggest you use a chat processor instead of doing all this manually, will save you a lot of work and make things easier. |
All times are GMT -4. The time now is 00:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.