Little Help!
#1

Hello everybody.Does anyone know how to divide time on timer by 2 ?
Reply
#2

SetTimer("SomeFunction", ((10000) / 2), true/false);

We need the code for the timer to help you.
Reply
#3

Quote:
Originally Posted by SkittlesAreFalling
Посмотреть сообщение
SetTimer("SomeFunction", ((10000) / 2), true/false);

We need the code for the timer to help you.
Hmm I tried it but when I enter to the point for capture capturing is very short.So can anyone give me some solutions..?
Reply
#4

Give us the timer code.
Reply
#5

pawn Код:
/*if(pMod[playerid][ShorterTimeForCapture] == 1)
            {
                format(slova,56,"(%d)/2",GangZones[i][CaptureTime]);
                GangZones[i][CapturingTimer] = SetTimerEx("OnPlayerCaptureGangZone", slova[56], 0, "dd", playerid, i);
            }
            else if(pMod[playerid][ShorterTimeForCapture] == 0)
            {
                GangZones[i][CapturingTimer] = SetTimerEx("OnPlayerCaptureGangZone", GangZones[i][CaptureTime], 0, "dd", playerid, i);
            }*/
Here it is!
Reply
#6

Код:
format(slova,56,"(%d)/2",GangZones[i][CaptureTime]);
GangZones[i][CapturingTimer] = SetTimerEx("OnPlayerCaptureGangZone", slova[56], 0, "dd", playerid, i);
to:

Код:
GangZones[i][CapturingTimer] = SetTimerEx("OnPlayerCaptureGangZone", (GangZones[i][CaptureTime]/2), 0, "dd", playerid, i);
format is for strings, it doesn't perform math.

Sorry for delayed response.
Quote:

This forum requires that you wait 240 seconds between posts. Please try again in 64 seconds.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)