Textdraw not show :/ (+rep)
#1

Hello.I make new login design and right now i have 2 cyan lines one up and one down and why the up line not show :/ i but down line is showing.I have code and script for show :/ can any help me please

Define

pawn Код:
new LoginKutijaDole2;
OnGameModeInit

pawn Код:
LoginKutijaGore2 = TextDrawCreate(650.500000, 47.000000, "usebox");
    TextDrawLetterSize(LoginKutijaGore2, 0.000000, 0.018054);
    TextDrawAlignment(LoginKutijaGore2, 1);
    TextDrawColor(LoginKutijaGore2, 16777215);
    TextDrawUseBox(LoginKutijaGore2, true);
    TextDrawBoxColor(LoginKutijaGore2, 16777215);
    TextDrawSetShadow(LoginKutijaGore2, 0);
    TextDrawSetOutline(LoginKutijaGore2, 0);
    TextDrawFont(LoginKutijaGore2, 0);
OnPlayerLogins

pawn Код:
TextDrawHideForPlayer(playerid, LoginKutijaDole2);
OnPlayerConnect

pawn Код:
TextDrawShowForPlayer(playerid, LoginKutijaDole2);
But he not showing
Reply
#2

Mix them, should be when player login... show.

When player connects hide the TD.
Reply
#3

'Textdraws'
One does not simply declare them like this:
pawn Код:
new LoginKutijaDole2;
But you need to declare them like this
pawn Код:
new Text: LoginKutijaDole2;
Reply
#4

not work again
Reply
#5

Test this
Код:
new Text:LoginKutijaGore2;
Код:
public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, LoginKutijaGore2); } public OnGameModeInit() { TextDrawCreate(650.500000, 47.000000, "usebox"); TextDrawLetterSize(LoginKutijaGore2, 0.000000, 0.018054); TextDrawAlignment(LoginKutijaGore2, 1); TextDrawColor(LoginKutijaGore2, 16777215); TextDrawUseBox(LoginKutijaGore2, true); TextDrawBoxColor(LoginKutijaGore2, 16777215); TextDrawSetShadow(LoginKutijaGore2, 0); TextDrawSetOutline(LoginKutijaGore2, 0); TextDrawFont(LoginKutijaGore2, 0); }
Please +rep if I helped
Reply
#6

Read the comments I added..
pawn Код:
//Top of script
new Text:LoginKutijaDole2;

//OnGameModeInit
    LoginKutijaGore2 = TextDrawCreate(650.500000, 47.000000, "usebox"); //Make sure these cords are on the screen!
    TextDrawLetterSize(LoginKutijaGore2, 0.000000, 0.018054);
    TextDrawAlignment(LoginKutijaGore2, 1);
    TextDrawColor(LoginKutijaGore2, 0xFF6347AA); //These were invalid colours..
    TextDrawUseBox(LoginKutijaGore2, true);
    TextDrawBoxColor(LoginKutijaGore2, 0xFF6347AA); //These were invalid colours..
                                                    //I changed them to a real hex color
    TextDrawSetShadow(LoginKutijaGore2, 0);
    TextDrawSetOutline(LoginKutijaGore2, 0);
    TextDrawFont(LoginKutijaGore2, 0);
   
//OnPlayerConnect
TextDrawShowForPlayer(playerid, LoginKutijaDole2);

//OnPlayerSpawn
TextDrawHideForPlayer(playerid, LoginKutijaDole2);
Quote:
Originally Posted by DavidSparks
Посмотреть сообщение
Please +rep if I helped
I don't know what you're begging for rep for.. Not like he can even give it.
Reply
#7

Flake i can't test right now i will test later if he work i will +2 repps you
Reply
#8

not working again
Reply
#9

Try this:

pawn Код:
new LoginKutijaDole2[MAX_PLAYERS]; // on top of the script

public OnPlayerConnect(playerid)
{
    LoginKutijaGore2[playerid] = TextDrawCreate(650.500000, 47.000000, "usebox");
    TextDrawLetterSize(LoginKutijaGore2[playerid], 0.000000, 0.018054);
    TextDrawAlignment(LoginKutijaGore2[playerid], 1);
    TextDrawColor(LoginKutijaGore2[playerid], 16777215);
    TextDrawUseBox(LoginKutijaGore2[playerid], true);
    TextDrawBoxColor(LoginKutijaGore2[playerid], 16777215);
    TextDrawSetShadow(LoginKutijaGore2[playerid], 0);
    TextDrawSetOutline(LoginKutijaGore2[playerid], 0);
    TextDrawFont(LoginKutijaGore2[playerid], 0);
   
    TextDrawShowForPlayer(playerid, LoginKutijaDole2[playerid]);
    return 1;
}
And OnPlayerLogin:
pawn Код:
TextDrawHideForPlayer(playerid, LoginKutijaDole2[playerid]);
Reply
#10

Sorry , wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)