SA-MP Forums Archive
Property Problem - 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: Property Problem (/showthread.php?tid=492533)



Property Problem - Snir_sofer - 04.02.2014

The Code:
PHP код:
    foreach(new playerid:Player)
    {
        
pInfo[playerid][EarnFromProperty] = 0;
        if(
pInfo[playerid][CountProps] > && !pInfo[playerid][InAFK])
        {
            for(new 
i,sizeof(PropertyArray); i<ji++)
            {
                if(
PropertyArray[i][PropertyOwnerID] == playerid)
                {
                    
pInfo[playerid][EarnFromProperty] += PropertyArray[i][PropertyEarn];
                }
            }
            
SendFormatMessage(playerid,Yellow,"чйбмъ %d$ одрлсйн щббтмеък"pInfo[playerid][EarnFromProperty]);
            
AC_GiveMoney(playeridpInfo[playerid][EarnFromProperty]);
        }
    } 
after first paid, the property given me 0 moneys (any time)...
sorry about my bad english..


Re: Property Problem - Snir_sofer - 05.02.2014

Up...


Re: Property Problem - Snir_sofer - 05.02.2014

-_-?


Re: Property Problem - Snir_sofer - 09.02.2014

?


Re: Property Problem - phoon - 09.02.2014

Check this around your scripts related to this script.
pawn Код:
PropertyArray[i][PropertyEarn]