Help Me in Countdown
#1

Hello

i need help with countdown clock to change the GM :

Код:
        CountDownTD = TextDrawCreate(230.000000,120.000000,"60 Seconds remaining");
 	TextDrawAlignment(CountDownTD,0);
  	TextDrawBackgroundColor(CountDownTD,0x000000ff);
  	TextDrawFont(CountDownTD,3);
  	TextDrawLetterSize(CountDownTD,0.499999,1.900000);
  	TextDrawColor(CountDownTD,0x0000ffff);
  	TextDrawSetOutline(CountDownTD,1);
  	TextDrawSetProportional(CountDownTD,1);
  	TextDrawSetShadow(CountDownTD,1);
  	SetTimerEx("CountDown", 1000, true, "i", playerid);
Error :

Код:
error 017: undefined symbol "playerid"
Reply
#2

Move this line to OnPlayerConnect:
pawn Код:
SetTimerEx("CountDown", 1000, true, "i", playerid);
Reply
#3

No.. If that's the timer to change the GM, then you should probably using SetTimer.
pawn Код:
SetTimerEx("CountDown", 1000, true);
Moving this to OnPlayerConnect would be terrible.
Reply
#4

'gmx' has nothing to do with a 'playerid' variable, so I assumed it wasn't for this purpose... otherwise, you would be using SetTimer, rather than SetTimerEx...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)