19.01.2015, 04:25
As you said o.5 Euro per fish right ? So you can think of 200$ Or More Per Fish
So make a variable like so
You can also make a enum if you wanna save it
Ok so to calculate the amount you can do something like this
NOTE :- This is just a example for you to understand how can you make it
So make a variable like so
PHP код:
new fish;[The Amount of fishes player has]
Ok so to calculate the amount you can do something like this
PHP код:
CMD:fishsell(playerid,params[])
{
//Some Message to tell play that he sold his fishes
SetPlayerMoney(playerid,GetPlayerMoney(playerid) + 200 * fish);
// This is give the player money 200 multiplied by how many fishes he has
}