08.12.2013, 10:12
Hello everybody.Does anyone know how to divide time on timer by 2 ?
/*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);
}*/
format(slova,56,"(%d)/2",GangZones[i][CaptureTime]); GangZones[i][CapturingTimer] = SetTimerEx("OnPlayerCaptureGangZone", slova[56], 0, "dd", playerid, i);
GangZones[i][CapturingTimer] = SetTimerEx("OnPlayerCaptureGangZone", (GangZones[i][CaptureTime]/2), 0, "dd", playerid, i);
This forum requires that you wait 240 seconds between posts. Please try again in 64 seconds. |