SetTimerEx
#5

Quote:
Originally Posted by idan123
Посмотреть сообщение
Thanks very much
I succeeded to solve the problem I do this:

PHP код:
forward ChangeGangZoneC(gangzonecolor[8], time1time2time3type);
public 
ChangeGangZoneC(gangzonecolor[8], time1time2time3type)
{
    new 
color1color2;
    for(new 
i4i++)color1 += GangZoneInfo[gangzone][GangZoneColor][i]*(floatround(floatpower(2563-i)));
    for(new 
i4i++)color2 += GangZoneInfo[gangzone][GangZoneColor][i+4]*(floatround(floatpower(2563-i)));
    if(
type == -1)
    {
        
GangZoneHideForAll(GangZoneInfo[gangzone][GangZoneId]);
        
GangZoneShowForAll(GangZoneInfo[gangzone][GangZoneId], color1);
        return 
1;
    }
    if(
time3 == 0)time3 GetTickCount();
    if((
GetTickCount()-time3 time1 || color1 == color2) && type == 1)
    {
        return 
1;
    }
    for(new 
i4i++)GangZoneInfo[gangzone][GangZoneColor][i] = color[i+4]+(color[i]-color[i+4])*((GetTickCount()-time3)/time1);
    
color1 0;
    for(new 
i4i++)color1 += GangZoneInfo[gangzone][GangZoneColor][i]*(floatround(floatpower(2563-i)));
    
GangZoneHideForAll(GangZoneInfo[gangzone][GangZoneId]);
    
GangZoneShowForAll(GangZoneInfo[gangzone][GangZoneId], color1);
    
SendClientMessageToAll(0x00FF00FF"GGG");
    
SetTimerEx("ChangeGangZoneC"time20"dddddd"gangzonecolortime1time2time3type);
    return 
1;

(look on the SetTimerEx)
i check it agin and it's don't work
Reply


Messages In This Thread
SetTimerEx - by idan123 - 08.01.2018, 14:12
Re: SetTimerEx - by RowdyrideR - 08.01.2018, 15:13
Re: SetTimerEx - by idan123 - 08.01.2018, 15:20
Re: SetTimerEx - by idan123 - 08.01.2018, 15:36
Re: SetTimerEx - by idan123 - 08.01.2018, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)