Timer problem ( simple )
#3

PHP код:
forward CowTimeCooldown(playerid);
public 
CowTimeCooldown(playerid)
{
    if(
CowTime[playerid] > 0)
    {
           
CowFence CreateDynamicObject(19833, -380.1285,-1472.2924,25.7266, -0.0000031.099999, -68.199905,0);
        
CowTime[playerid] --;
    }
    else if(
CowTime[playerid] == 0)
    {
           new 
string[128], cow;
        
PlayerInfo[playerid][pCow][cow] = PlayerInfo[playerid][pCow][cow] += 50;
        
format(stringsizeof(string), "* %s has fed his cow and it got bigger by 50 lbs"RPN(playerid));
        
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
        
DestroyDynamicObject(CowFence);
        
KillTimer(CowCooldown[playerid]);
       }
    return 
1;

Sorry this is how it really is. Still doesnt work
Reply


Messages In This Thread
Timer problem ( simple ) - by Mikeydoo - 26.01.2016, 20:08
Re: Timer problem ( simple ) - by itsCody - 26.01.2016, 20:16
Re: Timer problem ( simple ) - by Mikeydoo - 26.01.2016, 20:19
Re: Timer problem ( simple ) - by Mikeydoo - 26.01.2016, 20:52
Re: Timer problem ( simple ) - by AmigaBlizzard - 26.01.2016, 20:59
Re: Timer problem ( simple ) - by Mikeydoo - 26.01.2016, 21:02
Re: Timer problem ( simple ) - by Mikeydoo - 26.01.2016, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)