Textdraw during login and register problem|shows only for login or register
#1

i created 20 textdraws
10 for login screen and 10 for register
i put them in During the login screen
however the textdraws for the login work or either Register
but both textdraws dont work together.For example if a player want to register.Textdraws wont show but if he logins they will show
?
Reply
#2

Give us the code
Reply
#3

this is code
pawn Code:
if(!udb_Exists(PlayerName2(playerid)))
    {

        ShowRegisterScreen(playerid); //Shows the register dialog for player to register
        //Black Screen TextDraw
        BlackTD = TextDrawCreate(-20.000000,2.000000,"|");
       TextDrawUseBox(BlackTD,1);
       TextDrawBoxColor(BlackTD,0x000000ff);
       TextDrawTextSize(BlackTD,660.000000,22.000000);
       TextDrawAlignment(BlackTD,0);
       TextDrawBackgroundColor(BlackTD,0x000000ff);
       TextDrawFont(BlackTD,3);
       TextDrawLetterSize(BlackTD,1.000000,52.200000);
       TextDrawColor(BlackTD,0x000000ff);
       TextDrawSetOutline(BlackTD,1);
       TextDrawSetProportional(BlackTD,1);
       TextDrawSetShadow(BlackTD,1);
       TextDrawShowForPlayer(playerid,BlackTD);
        //Rest of the Textdraws
       Textdraw10 = TextDrawCreate(37.000000, 338.000000, "~g~~h~CALL OF DUTY 4");//call of Duty 4[Green]
       TextDrawBackgroundColor(Textdraw10, 255);
       TextDrawFont(Textdraw10, 1);
       TextDrawLetterSize(Textdraw10, 0.899999, 1.500000);
       TextDrawColor(Textdraw10, -1);
       TextDrawSetOutline(Textdraw10, 1);
       TextDrawSetProportional(Textdraw10, 0);
       TextDrawShowForPlayer(playerid,Textdraw10);

       Textdraw11 = TextDrawCreate(334.000000, 361.000000, "~r~~h~World At War");//World At war
       TextDrawBackgroundColor(Textdraw11, 255);
       TextDrawFont(Textdraw11, 1);
       TextDrawLetterSize(Textdraw11, 0.800000, 1.800000);
       TextDrawColor(Textdraw11, -1);
       TextDrawSetOutline(Textdraw11, 1);
       TextDrawSetProportional(Textdraw11, 1);
       TextDrawShowForPlayer(playerid,Textdraw11);

       Textdraw12 = TextDrawCreate(230.000000, 410.000000, "~y~~h~Get Ready To Fight");//get Ready To Fight[grey]
       TextDrawBackgroundColor(Textdraw12, 255);
       TextDrawFont(Textdraw12, 1);
       TextDrawLetterSize(Textdraw12, 0.639999, 1.000000);
       TextDrawColor(Textdraw12, -1);
       TextDrawSetOutline(Textdraw12, 1);
       TextDrawSetProportional(Textdraw12, 1);
       TextDrawShowForPlayer(playerid,Textdraw12);

       Textdraw13 = TextDrawCreate(222.000000, 14.000000, "~r~Register");//Register[red]
       TextDrawBackgroundColor(Textdraw13, 255);
       TextDrawFont(Textdraw13, 1);
       TextDrawLetterSize(Textdraw13, 1.410000, 2.700000);
       TextDrawColor(Textdraw13, -1);
       TextDrawSetOutline(Textdraw13, 1);
       TextDrawSetProportional(Textdraw13, 1);
       TextDrawShowForPlayer(playerid,Textdraw13);

      Textdraw14 = TextDrawCreate(10.000000, 105.000000, "~b~~h~~h~||Owned by||[CRY]JointTaskForce");//||Owned by||[CRY]JointTaskForce
      TextDrawBackgroundColor(Textdraw14, 255);
      TextDrawFont(Textdraw14, 1);
      TextDrawLetterSize(Textdraw14, 0.290000, 1.000000);
      TextDrawColor(Textdraw14, -1);
      TextDrawSetOutline(Textdraw14, 0);
      TextDrawSetProportional(Textdraw14, 1);
      TextDrawSetShadow(Textdraw14, 1);
      TextDrawShowForPlayer(playerid,Textdraw14);

      Textdraw15 = TextDrawCreate(10.000000, 117.000000, "~b~~h~~h~||Scripted and mapped by||[CRY]JointTaskForce");//||Scripted and mapped by||[CRY]JointTaskForce
      TextDrawBackgroundColor(Textdraw15, 255);
      TextDrawFont(Textdraw15, 1);
      TextDrawLetterSize(Textdraw15, 0.290000, 1.000000);
      TextDrawColor(Textdraw15, -1);
      TextDrawSetOutline(Textdraw15, 0);
      TextDrawSetProportional(Textdraw15, 1);
      TextDrawSetShadow(Textdraw15, 1);
      TextDrawShowForPlayer(playerid,Textdraw15);

      Textdraw16 = TextDrawCreate(10.000000, 129.000000, "~b~~h~~h~||Assistant||Firas");//||Assistant||Firas
      TextDrawBackgroundColor(Textdraw16, 255);
      TextDrawFont(Textdraw16, 1);
      TextDrawLetterSize(Textdraw16, 0.290000, 1.000000);
      TextDrawColor(Textdraw16, -1);
      TextDrawSetOutline(Textdraw16, 0);
      TextDrawSetProportional(Textdraw16, 1);
      TextDrawSetShadow(Textdraw16, 1);
      TextDrawShowForPlayer(playerid,Textdraw16);

      Textdraw17 = TextDrawCreate(0.000000, 2.000000, "~G~www.cod4community.tk");//www.cod4community.tk[green]
      TextDrawBackgroundColor( Textdraw17, 255);
      TextDrawFont( Textdraw17, 2);
      TextDrawLetterSize( Textdraw17, 0.480000, 0.899999);
      TextDrawColor( Textdraw17, -1);
      TextDrawSetOutline( Textdraw17, 1);
      TextDrawSetProportional( Textdraw17, 1);
      TextDrawShowForPlayer(playerid, Textdraw17);
    }
    if(udb_Exists(PlayerName2(playerid)))
    {
        ShowLoginScreen(playerid); //Shows the login dialog for player to login
        BlackTD1 = TextDrawCreate(-20.000000,2.000000,"|");
         TextDrawUseBox(BlackTD1,1);
         TextDrawBoxColor(BlackTD1,0x000000ff);
         TextDrawTextSize(BlackTD1,660.000000,22.000000);
         TextDrawAlignment(BlackTD1,0);
         TextDrawBackgroundColor(BlackTD1,0x000000ff);
         TextDrawFont(BlackTD1,3);
         TextDrawLetterSize(BlackTD1,1.000000,52.200000);
         TextDrawColor(BlackTD1,0x000000ff);
         TextDrawSetOutline(BlackTD1,1);
         TextDrawSetProportional(BlackTD1,1);
         TextDrawSetShadow(BlackTD1,1);
         TextDrawShowForPlayer(playerid,BlackTD1);

          //Rest of the Textdraws
       Textdraw20 = TextDrawCreate(37.000000, 338.000000, "~g~~h~CALL OF DUTY 4");//call of Duty 4[Green]
       TextDrawBackgroundColor(Textdraw20, 255);
       TextDrawFont(Textdraw20, 1);
       TextDrawLetterSize(Textdraw20, 0.899999, 1.500000);
       TextDrawColor(Textdraw20, -1);
       TextDrawSetOutline(Textdraw20, 1);
       TextDrawSetProportional(Textdraw20, 0);
       TextDrawShowForPlayer(playerid,Textdraw20);

       Textdraw21 = TextDrawCreate(334.000000, 361.000000, "~r~~h~World At War");//World At war
       TextDrawBackgroundColor(Textdraw21, 255);
       TextDrawFont(Textdraw21, 1);
       TextDrawLetterSize(Textdraw21, 0.800000, 1.800000);
       TextDrawColor(Textdraw21, -1);
       TextDrawSetOutline(Textdraw21, 1);
       TextDrawSetProportional(Textdraw21, 1);
       TextDrawShowForPlayer(playerid,Textdraw21);

       Textdraw22 = TextDrawCreate(230.000000, 410.000000, "~y~~h~Get Ready To Fight");//get Ready To Fight[grey]
       TextDrawBackgroundColor(Textdraw22, 255);
       TextDrawFont(Textdraw22, 1);
       TextDrawLetterSize(Textdraw22, 0.639999, 1.000000);
       TextDrawColor(Textdraw22, -1);
       TextDrawSetOutline(Textdraw22, 1);
       TextDrawSetProportional(Textdraw22, 1);
       TextDrawShowForPlayer(playerid,Textdraw22);

       Textdraw23 = TextDrawCreate(222.000000, 14.000000, "~g~Login");//Register[red]
       TextDrawBackgroundColor(Textdraw23, 255);
       TextDrawFont(Textdraw23, 1);
       TextDrawLetterSize(Textdraw23, 1.410000, 2.700000);
       TextDrawColor(Textdraw23, -1);
       TextDrawSetOutline(Textdraw23, 1);
       TextDrawSetProportional(Textdraw23, 1);
       TextDrawShowForPlayer(playerid,Textdraw23);

      Textdraw24 = TextDrawCreate(10.000000, 105.000000, "~b~~h~~h~||Owned by||[CRY]JointTaskForce");//||Owned by||[CRY]JointTaskForce
      TextDrawBackgroundColor(Textdraw24, 255);
      TextDrawFont(Textdraw24, 1);
      TextDrawLetterSize(Textdraw24, 0.290000, 1.000000);
      TextDrawColor(Textdraw24, -1);
      TextDrawSetOutline(Textdraw24, 0);
      TextDrawSetProportional(Textdraw24, 1);
      TextDrawSetShadow(Textdraw24, 1);
      TextDrawShowForPlayer(playerid,Textdraw24);

      Textdraw25 = TextDrawCreate(10.000000, 117.000000, "~b~~h~~h~||Scripted and mapped by||[CRY]JointTaskForce");//||Scripted and mapped by||[CRY]JointTaskForce
      TextDrawBackgroundColor(Textdraw25, 255);
      TextDrawFont(Textdraw25, 1);
      TextDrawLetterSize(Textdraw25, 0.290000, 1.000000);
      TextDrawColor(Textdraw25, -1);
      TextDrawSetOutline(Textdraw25, 0);
      TextDrawSetProportional(Textdraw25, 1);
      TextDrawSetShadow(Textdraw25, 1);
      TextDrawShowForPlayer(playerid,Textdraw25);

      Textdraw26 = TextDrawCreate(10.000000, 129.000000, "~b~~h~~h~||Assistant||Firas");//||Assistant||Firas
      TextDrawBackgroundColor(Textdraw26, 255);
      TextDrawFont(Textdraw26, 1);
      TextDrawLetterSize(Textdraw26, 0.290000, 1.000000);
      TextDrawColor(Textdraw26, -1);
      TextDrawSetOutline(Textdraw26, 0);
      TextDrawSetProportional(Textdraw26, 1);
      TextDrawSetShadow(Textdraw26, 1);
      TextDrawShowForPlayer(playerid,Textdraw26);

      Textdraw27 = TextDrawCreate(0.000000, 2.000000, "~G~www.cod4community.tk");//www.cod4community.tk[green]
      TextDrawBackgroundColor(Textdraw27, 255);
      TextDrawFont(Textdraw27, 2);
      TextDrawLetterSize(Textdraw27, 0.480000, 0.899999);
      TextDrawColor(Textdraw27, -1);
      TextDrawSetOutline(Textdraw27, 1);
      TextDrawSetProportional(Textdraw27, 1);
      TextDrawShowForPlayer(playerid,Textdraw27);
       
    }
    }
Reply
#4

The textdraws wont show Show DUring Login screen but show during register screen when player is not registered
Reply
#5

You have SFCRRPG if yes i can help you

Anyway check the points
Reply
#6

i got Team viewer ?
Reply
#7

Try to put these at OnPlayerGameModeInit()
And put on player connect TextDrawShowForPlayer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)