12.07.2015, 18:14
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;
}