PlayerTextDraw tag mismatch
#1

im have tag mismatch problem which im unable to fix ! what is the problem can anybdy tell me

pawn Код:
//player Textdraws:
new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];
new PlayerText:Textdraw2[MAX_PLAYERS];
new PlayerText:Textdraw3[MAX_PLAYERS];
new PlayerText:Textdraw4[MAX_PLAYERS];
new PlayerText:Textdraw5[MAX_PLAYERS];
new PlayerText:Textdraw6[MAX_PLAYERS];
new PlayerText:Textdraw7[MAX_PLAYERS];
new PlayerText:Textdraw8[MAX_PLAYERS];
new PlayerText:Textdraw9[MAX_PLAYERS];
new PlayerText:Textdraw10[MAX_PLAYERS];
new PlayerText:Textdraw11[MAX_PLAYERS];
new PlayerText:Textdraw12[MAX_PLAYERS];

new PlayerText:pTextdraw[3][MAX_PLAYERS];

stock CreatePlayerTextdraw(playerid)
{
    //PLayer Motd textdraws
    Textdraw0[playerid] = CreatePlayerTextDraw(playerid,483.000000, 133.000000, "");
    TextDrawFont(Textdraw0[playerid], 1);
    TextDrawLetterSize(Textdraw0[playerid], -0.049998, 22.400001);
    TextDrawColor(Textdraw0[playerid], -65281);
    TextDrawSetOutline(Textdraw0[playerid], 0);
    TextDrawSetProportional(Textdraw0[playerid], 1);
    TextDrawSetShadow(Textdraw0[playerid], 1);
    TextDrawUseBox(Textdraw0[playerid], 1);
    TextDrawBoxColor(Textdraw0[playerid], 255);
    TextDrawTextSize(Textdraw0[playerid], 136.000000, 0.000000);
    TextDrawBackgroundColor(Textdraw0[playerid], 255);

    Textdraw1[playerid] = CreatePlayerTextDraw(playerid,142.000000, 131.000000, "Orignal Freeroam");
    TextDrawBackgroundColor(Textdraw1[playerid], -1);
    TextDrawFont(Textdraw1[playerid], 3);
    TextDrawLetterSize(Textdraw1[playerid], 1.090000, 2.799998);
    TextDrawColor(Textdraw1[playerid], -16776961);
    TextDrawSetOutline(Textdraw1[playerid], 1);
    TextDrawSetProportional(Textdraw1[playerid], 1);

    Textdraw2[playerid] = CreatePlayerTextDraw(playerid,165.000000, 228.000000, "Cheat and you will be  banned");
    TextDrawBackgroundColor(Textdraw2[playerid], -1);
    TextDrawFont(Textdraw2[playerid], 1);
    TextDrawLetterSize(Textdraw2[playerid], 0.559998, 1.700000);
    TextDrawColor(Textdraw2[playerid], -16776961);
    TextDrawSetOutline(Textdraw2[playerid], 0);
    TextDrawSetProportional(Textdraw2[playerid], 1);
    TextDrawSetShadow(Textdraw2[playerid], 1);

    Textdraw3[playerid] = CreatePlayerTextDraw(playerid,160.000000, 167.000000, "Welcome and enjoy with everyone");
    TextDrawBackgroundColor(Textdraw3[playerid], 255);
    TextDrawFont(Textdraw3[playerid], 1);
    TextDrawLetterSize(Textdraw3[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw3[playerid], -1);
    TextDrawSetOutline(Textdraw3[playerid], 0);
    TextDrawSetProportional(Textdraw3[playerid], 1);
    TextDrawSetShadow(Textdraw3[playerid], 1);

    Textdraw4[playerid] = CreatePlayerTextDraw(playerid,154.000000, 179.000000, "if you are a new player use our help");
    TextDrawBackgroundColor(Textdraw4[playerid], 255);
    TextDrawFont(Textdraw4[playerid], 1);
    TextDrawLetterSize(Textdraw4[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw4[playerid], -1);
    TextDrawSetOutline(Textdraw4[playerid], 0);
    TextDrawSetProportional(Textdraw4[playerid], 1);
    TextDrawSetShadow(Textdraw4[playerid], 1);

    Textdraw5[playerid] = CreatePlayerTextDraw(playerid,176.000000, 190.000000, "by using /help /commands /rules");
    TextDrawBackgroundColor(Textdraw5[playerid], 255);
    TextDrawFont(Textdraw5[playerid], 1);
    TextDrawLetterSize(Textdraw5[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw5[playerid], -1);
    TextDrawSetOutline(Textdraw5[playerid], 0);
    TextDrawSetProportional(Textdraw5[playerid], 1);
    TextDrawSetShadow(Textdraw5[playerid], 1);

    Textdraw6[playerid] = CreatePlayerTextDraw(playerid,142.000000, 203.000000, "and if you use any invaild mod or cheat");
    TextDrawBackgroundColor(Textdraw6[playerid], 255);
    TextDrawFont(Textdraw6[playerid], 1);
    TextDrawLetterSize(Textdraw6[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw6[playerid], -1);
    TextDrawSetOutline(Textdraw6[playerid], 0);
    TextDrawSetProportional(Textdraw6[playerid], 1);
    TextDrawSetShadow(Textdraw6[playerid], 1);

    Textdraw7[playerid] = CreatePlayerTextDraw(playerid,174.000000, 215.000000, "then we will ban you peremently");
    TextDrawBackgroundColor(Textdraw7[playerid], 255);
    TextDrawFont(Textdraw7[playerid], 1);
    TextDrawLetterSize(Textdraw7[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw7[playerid], -1);
    TextDrawSetOutline(Textdraw7[playerid], 0);
    TextDrawSetProportional(Textdraw7[playerid], 1);
    TextDrawSetShadow(Textdraw7[playerid], 1);

    Textdraw8[playerid] = CreatePlayerTextDraw(playerid,139.000000, 252.000000, "Special Thanks to these people who helped us");
    TextDrawBackgroundColor(Textdraw8[playerid], 255);
    TextDrawFont(Textdraw8[playerid], 1);
    TextDrawLetterSize(Textdraw8[playerid], 0.449999, 0.899999);
    TextDrawColor(Textdraw8[playerid], -1);
    TextDrawSetOutline(Textdraw8[playerid], 0);
    TextDrawSetProportional(Textdraw8[playerid], 1);
    TextDrawSetShadow(Textdraw8[playerid], 1);

    Textdraw9[playerid] = CreatePlayerTextDraw(playerid,146.000000, 263.000000, "denNorkse , Banana_ghost , ****** , Kaperstone");
    TextDrawBackgroundColor(Textdraw9[playerid], 255);
    TextDrawFont(Textdraw9[playerid], 1);
    TextDrawLetterSize(Textdraw9[playerid], 0.409999, 1.000000);
    TextDrawColor(Textdraw9[playerid], -1);
    TextDrawSetOutline(Textdraw9[playerid], 0);
    TextDrawSetProportional(Textdraw9[playerid], 1);
    TextDrawSetShadow(Textdraw9[playerid], 1);

    Textdraw10[playerid] = CreatePlayerTextDraw(playerid,143.000000, 275.000000, "Vince , Djole, iZN, FUNExtreme , Redirect_left");
    TextDrawBackgroundColor(Textdraw10[playerid], 255);
    TextDrawFont(Textdraw10[playerid], 1);
    TextDrawLetterSize(Textdraw10[playerid], 0.439999, 0.899999);
    TextDrawColor(Textdraw10[playerid], -1);
    TextDrawSetOutline(Textdraw10[playerid], 0);
    TextDrawSetProportional(Textdraw10[playerid], 1);
    TextDrawSetShadow(Textdraw10[playerid], 1);

    Textdraw11[playerid] = TextDrawCreate(140.000000, 288.000000, "There are still more which i have forget (sorry)");
    TextDrawBackgroundColor(Textdraw11[playerid], 255);
    TextDrawFont(Textdraw11[playerid], 1);
    TextDrawLetterSize(Textdraw11[playerid], 0.430000, 1.000000);
    TextDrawColor(Textdraw11[playerid], 16777215);
    TextDrawSetOutline(Textdraw11[playerid], 0);
    TextDrawSetProportional(Textdraw11[playerid], 1);
    TextDrawSetShadow(Textdraw11[playerid], 1);

    Textdraw12[playerid] = CreatePlayerTextDraw(playerid,204.000000, 308.000000, "Currently Version v1.1.1");
    TextDrawBackgroundColor(Textdraw12[playerid], 255);
    TextDrawFont(Textdraw12[playerid], 1);
    TextDrawLetterSize(Textdraw12[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw12[playerid], -1);
    TextDrawSetOutline(Textdraw12[playerid], 0);
    TextDrawSetProportional(Textdraw12[playerid], 1);
    TextDrawSetShadow(Textdraw12[playerid], 1);

    // PlayerDamage Textdraws
    GiveDamage[playerid] = TextDrawCreate(171.000000, 388.000000, " ");
    TextDrawAlignment(GiveDamage[playerid], 2);
    TextDrawBackgroundColor(GiveDamage[playerid], 255);
    TextDrawFont(GiveDamage[playerid], 2);
    TextDrawLetterSize(GiveDamage[playerid], 0.160000, 0.599999);
    TextDrawColor(GiveDamage[playerid], 0x00FF04FF);
    TextDrawSetOutline(GiveDamage[playerid], 1);
    TextDrawSetProportional(GiveDamage[playerid], 1);
   
    TakeDamage[playerid] = TextDrawCreate(440.000000,388.000000, " ");
    TextDrawAlignment(TakeDamage[playerid], 2);
    TextDrawBackgroundColor(TakeDamage[playerid], 255);
    TextDrawFont(TakeDamage[playerid], 2);
    TextDrawLetterSize(TakeDamage[playerid], 0.160000, 0.599999);
    TextDrawColor(TakeDamage[playerid], 0xE81010FF);
    TextDrawSetOutline(TakeDamage[playerid], 1);
    TextDrawSetProportional(TakeDamage[playerid], 1);

    // Player Property Textdraws   
    pTextdraw[0][playerid] = CreatePlayerTextDraw(playerid,413.000000, 320.000000, "BoxNo1");
    TextDrawBackgroundColor(pTextdraw[0][playerid], 255);
    TextDrawFont(pTextdraw[0][playerid], 1);
    TextDrawLetterSize(pTextdraw[0][playerid], 0.379999, 8.299999);
    TextDrawColor(pTextdraw[0][playerid], -1);
    TextDrawSetOutline(pTextdraw[0][playerid], 0);
    TextDrawSetProportional(pTextdraw[0][playerid], 1);
    TextDrawSetShadow(pTextdraw[0][playerid], 1);
    TextDrawUseBox(pTextdraw[0][playerid], 1);
    TextDrawBoxColor(pTextdraw[0][playerid], 422067280);
    TextDrawTextSize(pTextdraw[0][playerid], 150.000000, 41.000000);

    pTextdraw[1][playerid] = CreatePlayerTextDraw(playerid,161.000000, 336.000000, "~y~Property name: ~w~~h~JeaSon's Property~n~~y~Property ID: ~w~~h~5~n~~y~Cost: ~g~$100,000,000~n~~y~Earnings: ~g~$50,000,000~n~");
    TextDrawBackgroundColor(pTextdraw[1][playerid], 255);
    TextDrawFont(pTextdraw[1][playerid], 1);
    TextDrawLetterSize(pTextdraw[1][playerid], 0.400000, 1.200000);
    TextDrawColor(pTextdraw[1][playerid], -1);
    TextDrawSetOutline(pTextdraw[1][playerid], 0);
    TextDrawSetProportional(pTextdraw[1][playerid], 1);
    TextDrawSetShadow(pTextdraw[1][playerid], 1);

    pTextdraw[2][playerid] = CreatePlayerTextDraw(playerid,209.000000, 319.000000, "~y~~h~Property Information");
    TextDrawBackgroundColor(pTextdraw[2][playerid], 255);
    TextDrawFont(pTextdraw[2][playerid], 1);
    TextDrawLetterSize(pTextdraw[2][playerid], 0.500000, 1.100000);
    TextDrawColor(pTextdraw[2][playerid], -1);
    TextDrawSetOutline(pTextdraw[2][playerid], 0);
    TextDrawSetProportional(pTextdraw[2][playerid], 1);
    TextDrawSetShadow(pTextdraw[2][playerid], 1);
    return true;

}
Reply
#2

You're creating PlayerTextDraw's, but you're trying to edit it as a TextDraw, you have to etc. for TextDrawFont use PlayerTextDrawFont.
Reply
#3

thanks ! lol i didnt noticed on that :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)