TextDraw help
#1

hello hello i have create atextdraw and i do like this when someone enter checkpoint

its show him textdraw and i type


Код:
public OnPlayerLeaveCheckpoint(playerid)
{
	if(getCheckpointType(playerid) == 99 && robbingstore[playerid] >=1) {
	TextDrawHideForPlayer(playerid,Textdraw2);
	SendClientMessage(playerid,COLOR_ERROR,"lil bar robbery failed, you left the checkpoint");
	}
	return 1;
}
but when i leave checkpoint its stay give me the Textdraw help here is the test draw code

new Text:Textdraw2;

Код:
   	   if(getCheckpointType(playerid) == 99 || getCheckpointType(playerid) == 99)
       {
       TextDrawShowForPlayer(playerid,Textdraw2);
       Textdraw2 = TextDrawCreate(151.000000,136.000000,"Type /roblilbar to rob lil bar");
       TextDrawAlignment(Textdraw2,0);
       TextDrawBackgroundColor(Textdraw2,0x000000ff);
	   TextDrawFont(Textdraw2,3);
	   TextDrawLetterSize(Textdraw2,0.500000,2.000000);
	   TextDrawColor(Textdraw2,0xffffffff);
	   TextDrawSetOutline(Textdraw2,1);
	   TextDrawSetProportional(Textdraw2,1);
	   TextDrawSetShadow(Textdraw2,1);
	   return 1;
       }
Reply
#2

bump can somebody help this error is hard i try to do all and its not go shit help
Reply
#3

Why don't you destroy it instead just hide it.
You create the textdraw in every player enter checkpoint but you just hide them when they leave checkpoint.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)