Feed Cow Problem :)
#6

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 ?]

Код:
	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;
So basically all you'll need to do is to add 5 more to your pCow variable within your command, something like this

Код:
PlayerInfo[playerid][pCow] = PlayerInfo[playerid][pCow] += 5;
Unless I got your variables wrong.
Reply


Messages In This Thread
Feed Cow Problem :) - by Mikeydoo - 12.01.2016, 23:52
Re: Feed Cow Problem :) - by -CaRRoT - 13.01.2016, 01:25
Re: Feed Cow Problem :) - by Mikeydoo - 13.01.2016, 01:26
Re: Feed Cow Problem :) - by -CaRRoT - 13.01.2016, 01:27
Re: Feed Cow Problem :) - by Mikeydoo - 13.01.2016, 01:35
Re: Feed Cow Problem :) - by -CaRRoT - 13.01.2016, 01:46
Re: Feed Cow Problem :) - by Mikeydoo - 13.01.2016, 01:51
Re: Feed Cow Problem :) - by -CaRRoT - 13.01.2016, 01:54
Re: Feed Cow Problem :) - by Mikeydoo - 13.01.2016, 01:57
Re: Feed Cow Problem :) - by -CaRRoT - 13.01.2016, 02:01

Forum Jump:


Users browsing this thread: 1 Guest(s)