Textdraws
#1

~~~~~~
Reply
#2

Hmm, do you get any erroers/warnings with compiling?
And make sure you don't use the same name for the Welcome's message textdraw and the Admin cmd textdraw.
Reply
#3

~~~~~~
Reply
#4

Hmm, could you provide some codes?
Reply
#5

~~~~~~
Reply
#6

Where are the admin textdraws?
Reply
#7

I can't get you. You destroy all the 'intro' textdraws inside the function 'IntroTextDestroy' which is called 10 seconds after a player connects [?]. So, this is what happens: you join, 10 seconds pass and the 'intro' textdraws are DESTROYED, and this is why you don't find them when you reconnect because they are no longer present.

Solution:

I suppose you wanna hide the textdraws after 10 seconds and NOT destroy them. So, your 'IntroTextDestroy' code should be:

Код:
public IntroTextDestroy(playerid)
{
	TextDrawHideForPlayer(playerid, introTitle);
	TextDrawHideForPlayer(playerid, introRules);
	TextDrawHideForPlayer(playerid, introRules1);
	TextDrawHideForPlayer(playerid, introRules2);
	TextDrawHideForPlayer(playerid, introRules3);
	TextDrawHideForPlayer(playerid, introRules4);
	TextDrawHideForPlayer(playerid, introRules5);
	TextDrawHideForPlayer(playerid, introRules6);
	TextDrawHideForPlayer(playerid, introRules7);
	TextDrawHideForPlayer(playerid, introRules8);
	TextDrawHideForPlayer(playerid, introRules9);
	TextDrawHideForPlayer(playerid, introRules10);
	TextDrawHideForPlayer(playerid, introRules11);
	TextDrawHideForPlayer(playerid, introRules12);
	return 1;
}
Reply
#8

~~~~~~
Reply
#9

Also need help with another thing please,

I can type all the cmds with textdraws without getting the current one closed, is there a solution for this?

If there is a textdraw up, it'll be closed before the new one appears, hope you understand
Reply
#10

Yea i got you, just hide the previous Textdraw for example:

pawn Код:
CMD:test(playerid)
{
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawShowForPlayer(playerid, OtherTextDraw);
     return 1;
     
}

OR
If you want to make a simple system to close all of it at once without rewritting it all again just:

pawn Код:
forawrd RemoveAllTextdraws(playerid);
stock RemoveAllTextdraws(playerid)
{
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawHideForPlayer(playerid, Textdrawname);
     return 1;
}

CMD:test(playerid)
{
     RemoveAllTextdraws(playerid);
     TextDrawShowForPlayer(playerid, Textdrawname); // The new one.
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)