SA-MP Forums Archive
Help Me in Countdown - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Me in Countdown (/showthread.php?tid=428574)



Help Me in Countdown - Strike97 - 06.04.2013

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"



Re: Help Me in Countdown - Threshold - 06.04.2013

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



Re: Help Me in Countdown - Mean - 06.04.2013

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.


Re: Help Me in Countdown - Threshold - 06.04.2013

'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...