13.03.2009, 11:21
replace this
with this.
That will stop the fishing license time from dropping below 0.
_________________________________________
Alt: You can also do this as an alternate way.
This will still drop the amount by 1, but then checks if its below 0 and if it is, it adds 1. This makes it 0 again. Both ways will work. Its up to you which you prefer.
pawn Код:
PlayerInfo[i][pFishLicenseTime] -= 1;
pawn Код:
if(PlayerInfo[i][pFishLicenseTime] > 0)
{
PlayerInfo[i][pFishLicenseTime] -= 1;
}
_________________________________________
Alt: You can also do this as an alternate way.
pawn Код:
PlayerInfo[i][pFishLicenseTime] -= 1;
if(Playerinfo[i][pFishLicenseTime] <= 0)
{
PlayerInfo[i][pFishLicenseTime]++;
}

