#1

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
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
What are you saying that the problem is the timer?
pawn Код:
SetTimerEx("CDPlayer", 1000, false, "d", playerid);
?
Reply
#3

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 .. :/
Reply
#4

PHP код:
SetTimerEx("CDPlayer"1000false"d"playerid); 
you need two parameter's playerid and cd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)