SetTimerEx
#3

Quote:
Originally Posted by RowdyrideR
Посмотреть сообщение
Wtf is that code tbh?!?!
Check https://sampwiki.blast.hk/wiki/SetTimerEx
This code is example of this code:
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"dsdddd"gangzonecolortime1time2time3type);
    return 
1;

I put the full code in my server
and the SetTimerEx crash my server
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)