Textdraw related warnings?
#1

Hello community,

I got these two ( I guess quite simple. ) warnings which of I can't figure out how to fix them!

Warnings:
Код:
F:\GTA\server\samp03e_svr_win32\gamemodes\gamemode.pwn(40) : warning 213: tag mismatch
F:\GTA\server\samp03e_svr_win32\gamemodes\gamemode.pwn(232) : warning 213: tag mismatch
Lines:
pawn Код:
Line 40: TextDrawShowForPlayer(p, Hinfo[h][HTextDraw]);
Line 232: Hinfo[id][HTextDraw] = TextDrawCreate(0.0, 240.0, string);
If someone knows what's causing this you'd help me alot!

Best regards,
Jesse
Reply
#2

If you're using textdraws per player then use https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw and https://sampwiki.blast.hk/wiki/PlayerTextDrawShow. If it's just single player textdraws then make sure the
pawn Код:
Hinfo[h][HTextDraw]
is defined in the enum as a text by using the Text: identifier.
Reply
#3

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
If you're using textdraws per player then use https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw and https://sampwiki.blast.hk/wiki/PlayerTextDrawShow. If it's just single player textdraws then make sure the
pawn Код:
Hinfo[h][HTextDraw]
is defined in the enum as a text by using the Text: identifier.
I want to show the textdraws just to players within a certain area ( With IsPlayerInRangeOfPoint. ) and I figured it should be possible with TextDrawShowForPlayer as you have to put in a playerid and textdraw. The textdraw is created on server startup and using the functions you told me would make the script creating a textdraw for every player once they enter that certain area and delete it after they leave the area, seems a little memory wasting for me but if I can't find any solution for this I guess I'll have to go with your way.

Best regards,
Jesse

EDIT:
Nevermind, I did text:HTextDraw instead of Text:HTextDraw. Typing mistake! Problem solved!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)