0.3x-R2 client security update (pre-release 2)
#9

Quote:
Originally Posted by d0
Посмотреть сообщение
Could you provide code to reproduce this issue ?



Same issue here. Must be an issue with the detection of k-codes as the strings you provided don't contain any of these.
Here is the portion of code you need to reproduce the error:
pawn Код:
new DiasDaSemanaX[7][10] = {
    "Domingo",
    "Segunda",
    "Terca",
    "Quarta",
    "Quinta",
    "Sexta",
    "Sabado"
};
pawn Код:
new Text:Relogio;
pawn Код:
new irelogio[64];
pawn Код:
Relogio=TextDrawCreate(610,10,"00:00");
    TextDrawLetterSize(Relogio,0.5,1.8);
    TextDrawFont(Relogio,3);
    TextDrawAlignment(Relogio,3);
    TextDrawBackgroundColor(Relogio,0x000000FF);
    TextDrawSetOutline(Relogio,1);
        TextDrawBoxColor(Relogio, 0x000000FF);
        TextDrawSetShadow(Relogio,1);
pawn Код:
format(irelogio,sizeof(irelogio),"~g~%s ~n~0%d:0%dhs",DiasDaSemanaX[DiaDaSemana],Hrs,Min); //Replace DiasDaSemanaX[DiaDaSemana] to DiasDaSemanaX[3] or other array item.
pawn Код:
if(strlen(irelogio)) TextDrawSetString(Relogio,irelogio);
pawn Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid,Relogio);
}

Sorry about the delay, ich habe keine Zeit
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)