TextDraw is dispalyed very weird
#1

Hey,

So, i have created a new TextDraw, it is displayed like this:



Now, the weird part:

PHP код:
initMapInfoTextDraw()
{
    
mapInfoTextDraw TextDrawCreate(1.000000431.000000"");
    
TextDrawBackgroundColor(mapInfoTextDraw255);
    
TextDrawFont(mapInfoTextDraw2);
    
TextDrawLetterSize(mapInfoTextDraw0.2400000.899999);
    
TextDrawColor(mapInfoTextDraw, -1);
    
TextDrawSetOutline(mapInfoTextDraw1);
    
TextDrawSetProportional(mapInfoTextDraw1);

This is the method that creates the TextDraw, but it is never called, also, i am never showing the TextDraw.
How is this even Possible? Also the Alive Players TextDraw is totally stretched (the black box). Hope someone has some ideas.

greetings Marcel
Reply
#2

Ok, it is "fixed".

It seems like there were multiple samp server processes running and they couldn't be killed, restarted the VPS and everything is fine now.
Reply
#3

Text must not be empty. Use a space or an underscore.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Text must not be empty. Use a space or an underscore.
That was not the problem, i had tried that tho. I am setting it as soon as the first map is loaded which happens on startup, so thats fine anyways. Thanks tho!
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Text must not be empty. Use a space or an underscore.
The server would crash if it was actually empty (at least that's what the wiki says, I don't think it was fixed). Probably he is using the fixes include, as it prevents this mistake.
Reply
#6

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
The server would crash if it was actually empty (at least that's what the wiki says, I don't think it was fixed). Probably he is using the fixes include, as it prevents this mistake.
Quote:

text[] must NOT be empty or the server will crash! If you need a textdraw that shows nothing, use " " (a space) or _ (underscore). Now it's fixed.

https://sampwiki.blast.hk/wiki/TextDrawCreate
Reply
#7

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Aw, missed that part, pretty funny.
Reply
#8

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
Aw, missed that part, pretty funny.
Yeah, kind of a fail, should be edited (i'd like to do that ... but noooo you can't create new accounts because of trolls!)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)