13.01.2016, 01:46
Well, since I am not very familiar with your variables, Your /buycow command just gives/adds a random amount of pounds to your pCow variable[so that variable supposedly represents the amount of pounds the cow is ?]
So basically all you'll need to do is to add 5 more to your pCow variable within your command, something like this
Unless I got your variables wrong.
Код:
if(strval(RPJL(playerid, JOB_FARMER)) == 1) cow = random(10)+5; else if(strval(RPJL(playerid, JOB_FARMER)) == 2) cow = random(20)+15; else if(strval(RPJL(playerid, JOB_FARMER)) == 3) cow = random(40)+20; else if(strval(RPJL(playerid, JOB_FARMER)) == 4) cow = random(60)+2else if(strval(RPJL(playerid, JOB_FARMER)) == 5) cow = random(80)+40; PlayerInfo[playerid][pCow][done] = cow;
Код:
PlayerInfo[playerid][pCow] = PlayerInfo[playerid][pCow] += 5;