Textdraw bug? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw bug? (
/showthread.php?tid=333096)
Textdraw bug? -
johannes95 - 10.04.2012
I have a textdraw bug, i have 1 space and it shows 2/3 space if you can see at 10 and april
Re: Textdraw bug? -
[HiC]TheKiller - 10.04.2012
Could you post the code where you format the textdraw? This would help us determine the issue

.
Re: Textdraw bug? -
johannes95 - 10.04.2012
pawn Код:
format(MessageText, sizeof(MessageText), "Date: %d %s %d", day, month, year);
Re: Textdraw bug? -
Jeffry - 10.04.2012
Try:
TextDrawSetProportional
Re: Textdraw bug? -
johannes95 - 10.04.2012
I already did
Re: Textdraw bug? -
Rachael - 10.04.2012
Try replacing space with underscore, underscores will appear as spaces in textdraws.
Re: Textdraw bug? -
THE_KING$5$ - 10.04.2012
i Think this Will Fix it.
Код:
format(MessageText, sizeof(MessageText), "Date: %d%s%d", day, month, year);
Re: Textdraw bug? -
Jeffry - 10.04.2012
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?
Re: Textdraw bug? -
johannes95 - 10.04.2012
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]); } }
Re: Textdraw bug? -
Jeffry - 10.04.2012
Seems fine.
You have set
TextDrawSetProportional to
1?
If yes, try to add before ''format(MessageText,...''
This will delete the first character of 'month'. If it is a space, it will be deleted. If not, show the result please.