Hello, Sorry for my bad English but I have a problem with the days of the week. Textdraw remains only on Wednesday (St).
I am a beginner in the Pawn. Thank you for your help
Код:
den=TextDrawCreate(509.0, 8.0, "~g~Po ~g~Ut ~r~St ~g~Ct ~g~Pt ~g~So ~g~Ne");
TextDrawLetterSize(den, 0.3, 1.4);
TextDrawFont(den, 3);
TextDrawSetOutline(den, 1);
Код:
public denfunkce()
{
new string[256];
new day;
getdate(day);
switch(day)
{
case 0: format(string,25,"~g~Po ~g~Ut ~r~St ~g~Ct ~g~Pt ~g~So ~g~Ne",day);
case 1: format(string,25,"~g~Po ~g~Ut ~g~St ~r~Ct ~g~Pt ~g~So ~g~Ne",day);
case 2: format(string,25,"~g~Po ~g~Ut ~g~St ~g~Ct ~r~Pt ~g~So ~g~Ne",day);
case 3: format(string,25,"~g~Po ~g~Ut ~g~St ~g~Ct ~g~Pt ~r~So ~g~Ne",day);
case 4: format(string,25,"~g~Po ~g~Ut ~g~St ~g~Ct ~g~Pt ~g~So ~r~Ne",day);
case 5: format(string,25,"~r~Po ~g~Ut ~g~St ~g~Ct ~g~Pt ~g~So ~g~Ne",day);
case 6: format(string,25,"~g~Po ~r~Ut ~g~St ~g~Ct ~g~Pt ~g~So ~g~Ne",day);
}
for(new i=0;i<MAX_PLAYERS;i++)
{
TextDrawHideForPlayer(i,den);
TextDrawSetString(den,string);
TextDrawShowForPlayer(i,den);
}
return 1;
}