CD :S - 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: CD :S (
/showthread.php?tid=392215)
CD :S -
benel1 - 13.11.2012
pawn Код:
forward CDPlayer(playerid, cd);
public CDPlayer(playerid, cd)
{
new cdt[256];
format(cdt, sizeof(cdt), "%d", cd), GameTextForPlayer(playerid, cdt, 1000, 1);
if(cd > 1) cd--, SetTimerEx("CDPlayer", 1000, 0, "%d", cd);
return 1;
}
pawn Код:
CDPlayer(playerid, 120000);
What's the problem in this code? : S
It just shows me once 120000 .. : S
Re: CD :S -
benel1 - 13.11.2012
Quote:
Originally Posted by ******
|
What are you saying that the problem is the timer?
pawn Код:
SetTimerEx("CDPlayer", 1000, false, "d", playerid);
?
Re: CD :S -
benel1 - 13.11.2012
Quote:
Originally Posted by ******
I'm saying that's at least one of the problems.
|
So maybe you can explain to me what the problems in the code and i can arrange them?
And sorry for my bad english .. :/
AW: CD :S -
xerox8521 - 13.11.2012
PHP код:
SetTimerEx("CDPlayer", 1000, false, "d", playerid);
you need two parameter's playerid and
cd