Textdraw bug?
#1

I have a textdraw bug, i have 1 space and it shows 2/3 space if you can see at 10 and april

Reply
#2

Could you post the code where you format the textdraw? This would help us determine the issue .
Reply
#3

pawn Код:
format(MessageText, sizeof(MessageText), "Date: %d %s %d", day, month, year);
Reply
#4

Try: TextDrawSetProportional
Reply
#5

I already did
Reply
#6

Try replacing space with underscore, underscores will appear as spaces in textdraws.
Reply
#7

i Think this Will Fix it.
Код:
format(MessageText, sizeof(MessageText), "Date: %d%s%d", day, month, year);
Reply
#8

Then I think your 'month' variable simply has a ' ' (Space) as first letter. Can you show the function(s) which you use to get the month's name, please?
Reply
#9

pawn Код:
if(month == 1) { monthtext = "January"; SetWeather(winterrand); }
    else if(month == 2) { monthtext = "February"; SetWeather(winterrand); }
    else if(month == 3) { monthtext = "March"; if(day <21) { SetWeather(WinterWeather[winterrand]); } else { SetWeather(SpringWeather[springrand]); } }
    else if(month == 4) { monthtext = "April"; SetWeather(SummerWeather[summerrand]); }
    else if(month == 5) { monthtext = "May"; SetWeather(SpringWeather[springrand]); }
    else if(month == 6) { monthtext = "June"; if(day <21) { SetWeather(SpringWeather[springrand]); } else { SetWeather(SummerWeather[summerrand]); } }
    else if(month == 7) { monthtext = "July"; SetWeather(SummerWeather[summerrand]); }
    else if(month == 8) { monthtext = "August"; SetWeather(SummerWeather[summerrand]); }
    else if(month == 9) { monthtext = "September"; if(day <21) { SetWeather(SummerWeather[summerrand]); } else { SetWeather(AutumnWeather[autumnrand]); } }
    else if(month == 10) { monthtext = "October"; SetWeather(AutumnWeather[autumnrand]); }
    else if(month == 11) { monthtext = "November"; SetWeather(AutumnWeather[autumnrand]); }
    else if(month == 12) { monthtext = "December"; if(day <21) { SetWeather(AutumnWeather[autumnrand]); } else { SetWeather(WinterWeather[winterrand]); } }
Reply
#10

Seems fine.
You have set TextDrawSetProportional to 1?

If yes, try to add before ''format(MessageText,...''
pawn Код:
strdel(month, 0, 1);
This will delete the first character of 'month'. If it is a space, it will be deleted. If not, show the result please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)