Xleniz
07-02-2013, 12:07 PM
HI AGIN.
I decided to make a Tibia - Information program (example, you walk to Edron hero cave, and before stairs down:
STATUS MESSAGE: Heroes - Monsters: Hero),
it works so far, with 1 problem: The text string continues after 0x00 with the text that was there from beginning.
Example: 13:57 Cipfried: Welcome to the temple of Rookgaard!
Will be: Welcome to TibiaMonster 1.0 mple of Rookgaard!
I tried to nullset the string with this:
byte byte1[1000] = "Welcome to TibiaMonster 1.0";
for(int i = 0; i < 972; i++){
byte1[28+i] = 0x00;
}
But problem is, I would have to do it with all byte strings, and it would be painful.
Anyone has an idea?
QUESTION: How to nullset all of string, with inserting 1 character, or a short function?
Thanks.
I decided to make a Tibia - Information program (example, you walk to Edron hero cave, and before stairs down:
STATUS MESSAGE: Heroes - Monsters: Hero),
it works so far, with 1 problem: The text string continues after 0x00 with the text that was there from beginning.
Example: 13:57 Cipfried: Welcome to the temple of Rookgaard!
Will be: Welcome to TibiaMonster 1.0 mple of Rookgaard!
I tried to nullset the string with this:
byte byte1[1000] = "Welcome to TibiaMonster 1.0";
for(int i = 0; i < 972; i++){
byte1[28+i] = 0x00;
}
But problem is, I would have to do it with all byte strings, and it would be painful.
Anyone has an idea?
QUESTION: How to nullset all of string, with inserting 1 character, or a short function?
Thanks.