10.02.2012, 19:26
I make 4 textdraws and after I connect it disapear........
Код:
//------------------------------------------------------------------------------ new Hour, Minute, Second;new time[20]; gettime(Hour, Minute, Second); format(time, sizeof(time), "%d:%d:%d",time); TextdrawTime = TextDrawCreate(551.000000, 4.000000, time); TextDrawBackgroundColor(TextdrawTime, 65535); TextDrawFont(TextdrawTime, 2); TextDrawLetterSize(TextdrawTime, 0.420000, 2.099999); TextDrawColor(TextdrawTime, -1); TextDrawSetOutline(TextdrawTime, 1); TextDrawSetProportional(TextdrawTime, 1); //------------------------------------------------------------------------------ new year,month,day;new date[20];getdate(year, month, day); format(date, sizeof(date), "%d-%d",day,month); TextdrawDate = TextDrawCreate(490.000000, 5.000000, date); TextDrawBackgroundColor(TextdrawDate, 16777215); TextDrawFont(TextdrawDate, 2); TextDrawLetterSize(TextdrawDate, 0.430000, 2.000000); TextDrawColor(TextdrawDate, -1); TextDrawSetOutline(TextdrawDate, 1); TextDrawSetProportional(TextdrawDate, 1); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, TextdrawTime); TextDrawShowForPlayer(i, TextdrawDate); } }