Text formating problem
#1

Hello. I have a problem with this:

http://pastebin.com/eD6GWpFe

The code SOMETIMES stops after the "format" line. The parameters are OK, and the debug texts show the right values.

Sometimes don't work ....
Reply
#2

Because sometimes, the parameters passed to the format function exceeds the "test" variable size
If the "inputtext" parameter exceeds 30 characters, the format function will simply crash, try increasing the "test" variable size like:
pawn Код:
new test[128];
Reply
#3

The "test" variable is a Debug text, this debug text appear every time.
Reply
#4

Well, from what u said in the first post, sometimes it stops after the "format" function, then the only problem i can see in ur code is the one i mentioned above
Reply
#5

Ok, i will increase the string size. But this string: " RG %02d %s " Can't be bigger than 50 ....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)