Divide amount equally, automatically.
#2

Quote:
Originally Posted by stormchaser206
Посмотреть сообщение
And I have to divide that equally depending on how many countries they have listed.
what you could do is keep a variable which holds the amount of countries for each player and just divide that with the amount they type infor the export thingy

something like...
pawn Код:
//in your explor dialog
new amount;//that's the export thing initialized by players
countries[playerid];//the number of countries, 15 for example

//now we just do something like
new Float:result = amount / countries[playerid];
//result now holds the amount every country should get

well, not 100% sure if that's what you wanted, since it's that simple.
Reply


Messages In This Thread
Divide amount equally, automatically. - by stormchaser206 - 07.09.2014, 12:54
Re: Divide amount equally, automatically. - by CutX - 07.09.2014, 13:54
Re: Divide amount equally, automatically. - by stormchaser206 - 07.09.2014, 14:17
Re: Divide amount equally, automatically. - by CutX - 07.09.2014, 14:21
Re: Divide amount equally, automatically. - by stormchaser206 - 07.09.2014, 16:05
Re: Divide amount equally, automatically. - by JM_Millers - 07.09.2014, 16:31

Forum Jump:


Users browsing this thread: 2 Guest(s)