Textdraw bug
#1

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;
}
Reply
#2

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

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

My bad i did something wrong lol hehehhh
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)