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] > 0 && !pInfo[playerid][InAFK])
{
for(new i,j = sizeof(PropertyArray); i<j; i++)
{
if(PropertyArray[i][PropertyOwnerID] == playerid)
{
pInfo[playerid][EarnFromProperty] += PropertyArray[i][PropertyEarn];
}
}
SendFormatMessage(playerid,Yellow,"чйбмъ %d$ одрлсйн щббтмеък", pInfo[playerid][EarnFromProperty]);
AC_GiveMoney(playerid, pInfo[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]