DD Countdown
#1

Quote:

public DDCountdown()
{
new string[64];
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i,400,-1398.3799,994.8915,1024.0889))
{
ddcount --;
if(ddcount != 0)
{
format(string, sizeof(string),"~r~DD Countdown: ~n~~n~%d",ddcount);
}
else
{
format(string, sizeof(string),"~r~DD Countdown: ~n~~n~~g~GO GO GO!",ddcount);
KillTimer(ddcounttimer);
}
GameTextForPlayer(i,string,1000,4);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(i, X,Y,Z);
PlayerPlaySound(i, 1056, X, Y, Z);
}
}
}
return 1;
}

Instead of the countdown going down it goes upto -1 and keeps going doesnt stop last time it went to -2140 and didnt stop can somehelp
Reply
#2

Look here.. https://sampforum.blast.hk/showthread.php?tid=110121
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)