Random Box Message Col
#1

So this should change box colour every 90 secs but it doesnt, and idk why:

pawn Код:
task NasumicneRMsg[92000]()
{
    if(MsgBoxCol == 0)
    {
        new rand = random(sizeof(Poruke)), CmdString[128];
        format(CmdString, 128, ">> rpf: %s", RMsg[rand]);
        TextDrawSetString(RPFLogo[1], CmdString);
        TextDrawBoxColor(RPFLogo[0], 5676799);
        MsgBoxCol = 1;
    }
    else if(MsgBoxCol == 1)
    {
        new rand = random(sizeof(Poruke)), CmdString[128];
        format(CmdString, 128, ">> rpf: %s", RMsg[rand]);
        TextDrawSetString(RPFLogo[1], CmdString);
        TextDrawBoxColor(RPFLogo[0], 7471359);
        MsgBoxCol = 2;
    }
    else if(MsgBoxCol == 2)
    {
        new rand = random(sizeof(Poruke)), CmdString[128];
        format(CmdString, 128, ">> rpf: %s", RMsg[rand]);
        TextDrawSetString(RPFLogo[1], CmdString);
        TextDrawBoxColor(RPFLogo[0], 14469887);
        MsgBoxCol = 3;
    }
    else if(MsgBoxCol == 3)
    {
        new rand = random(sizeof(Poruke)), CmdString[128];
        format(CmdString, 128, ">> rpf: %s", RMsg[rand]);
        TextDrawSetString(RPFLogo[1], CmdString);
        TextDrawBoxColor(RPFLogo[0], 14446847);
        MsgBoxCol = 4;
    }
    else if(MsgBoxCol == 4)
    {
        new rand = random(sizeof(Poruke)), CmdString[128];
        format(CmdString, 128, ">> rpf: %s", RMsg[rand]);
        TextDrawSetString(RPFLogo[1], CmdString);
        TextDrawBoxColor(RPFLogo[0], -2330369);
        MsgBoxCol = 5;
    }
    else if(MsgBoxCol == 5)
    {
        new rand = random(sizeof(Poruke)), CmdString[128];
        format(CmdString, 128, ">> rpf: %s", RMsg[rand]);
        TextDrawSetString(RPFLogo[1], CmdString);
        TextDrawBoxColor(RPFLogo[0], -2330369);
        MsgBoxCol = 0;
    }
    return 1;
}
Reply
#2

You are giving TextDrawBoxColor(RPFLogo[0] at every cas try to change it to RPFLogo[1]
Reply
#3

RPFLogo[0] is the box that i want to alpply colors to.
Reply
#4

fixed it, i forgot to hide td and show it againg..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)