06.11.2011, 23:37
faz o seguinte com esses textdraws (eles tem que estar na public OnGameModeInit):
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
txtTimeDisp[i] = TextDrawCreate(632.0,25.0,"--:--:--");//linha do erro
TextDrawUseBox(txtTimeDisp[i], 0);
TextDrawFont(txtTimeDisp[i], 3);
TextDrawSetShadow(txtTimeDisp[i],0);
TextDrawSetOutline(txtTimeDisp[i],2);
TextDrawBackgroundColor(txtTimeDisp[i],0xAA3333AA);
TextDrawColor(txtTimeDisp[i],0x666699F6);
TextDrawAlignment(txtTimeDisp[i],3);
TextDrawLetterSize(txtTimeDisp[i],0.5,1.5);
txtDateDisp[i] = TextDrawCreate(620.0,5.0,"00/00/0000");//linha do 2 erro
TextDrawUseBox(txtDateDisp[i], 0);
TextDrawFont(txtDateDisp[i], 3);
TextDrawSetShadow(txtDateDisp[i],0);
TextDrawSetOutline(txtDateDisp[i],2);
TextDrawBackgroundColor(txtDateDisp[i],0xAA3333AA);
TextDrawColor(txtDateDisp,0x666699F6);
TextDrawAlignment(txtDateDisp[i],3);
TextDrawLetterSize(txtDateDisp[i],0.5,1.5);
SetTimer("ProcessGameTime", 1000, 1);
}