Textdraw not show :/ (+rep) -
ScripteRMKD - 09.07.2014
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
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
Re: Textdraw not show :/ (+rep) -
d3ll - 09.07.2014
Mix them, should be when player login... show.
When player connects hide the TD.
Re: Textdraw not show :/ (+rep) -
greentarch - 09.07.2014
'Textdraws'
One does not simply declare them like this:
But you need to declare them like this
pawn Код:
new Text: LoginKutijaDole2;
Re: Textdraw not show :/ (+rep) -
ScripteRMKD - 09.07.2014
not work again
Re: Textdraw not show :/ (+rep) -
DavidSparks - 09.07.2014
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
Re: Textdraw not show :/ (+rep) -
Flake. - 09.07.2014
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.
Re: Textdraw not show :/ (+rep) -
ScripteRMKD - 09.07.2014
Flake i can't test right now i will test later if he work i will +2 repps you
Re: Textdraw not show :/ (+rep) -
ScripteRMKD - 10.07.2014
not working again
Re: Textdraw not show :/ (+rep) -
Juvanii - 10.07.2014
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]);
Re: Textdraw not show :/ (+rep) -
Need4samp - 10.07.2014
Sorry , wrong