SA-MP Forums Archive
Time - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Time (/showthread.php?tid=522336)



Time - Pboachie - 27.06.2014

Cant tell if this is talking about seconds, minutes or?

PHP код:
stock Plantation()
{
    for(new 
0sizeof(WeedInfo); b++)
    {
        if(
WeedInfo[b][WeedPlanted] == 1)
        {
            
WeedInfo[b][WeedTime] += 1;
            if (
IsMultiple(WeedInfo[b][WeedTime], 2) && WeedInfo[b][WeedTime] != 0)
            {
                
WeedInfo[b][WeedGrams] += random(3);
            }
            if(
WeedInfo[b][WeedTime] > 60WeedInfo[b][WeedGrams] += random(3); 



Re: Time - Threshold - 27.06.2014

Looks like WeedInfo[b][WeedTime] is in seconds to me.