SA-MP Forums Archive
Textdraw bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw bug (/showthread.php?tid=507188)



Textdraw bug - Ananisiki - 16.04.2014

When i type this command it dont show the rules, it show another textdraws box, why


pawn Код:
CMD:forcerules(playerid, params[])
{
    #pragma unused params
    if(!IsCnRAdmin(playerid)) return UnknownCMD(playerid);
    if(Dead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Dead.");
    if(IsPlayerConnected(playerid))
    {
        RemoveAllTextDraws(playerid);
        TextDrawShowForAll(ForceRulesText0[playerid]);
        TextDrawShowForAll(ForceRulesText1[playerid]);
        TextDrawShowForAll(ForceRulesText2[playerid]);
        TextDrawShowForAll(ForceRulesText3[playerid]);
        TextDrawShowForAll(ForceRulesText4[playerid]);
        TextDrawShowForAll(ForceRulesText5[playerid]);
        TextDrawShowForAll(ForceRulesText6[playerid]);
        TextDrawShowForAll(ForceRulesText7[playerid]);
        TextDrawShowForAll(ForceRulesText8[playerid]);
        TextDrawShowForAll(ForceRulesText9[playerid]);
        TextDrawShowForAll(ForceRulesText10[playerid]);
        TextDrawShowForAll(ForceRulesText11[playerid]);
        TextDrawShowForAll(ForceRulesText11[playerid]);
        TextDrawShowForAll(ForceRulesText12[playerid]);
    }
    SetTimerEx("ForceRulesDestroy", 10000, false, "i", playerid);
    return 1;
}



Re: Textdraw bug - Ananisiki - 16.04.2014

I have that in my all textdraws, like commands, animation commands, admin commands, teleport commands and so, should i remove it?


Re: Textdraw bug - Ananisiki - 16.04.2014

I have way too much arrays to remove.... You think it is causing by that?


Re: Textdraw bug - Ananisiki - 16.04.2014

My bad i did something wrong lol hehehhh