Score according to the distance
#4

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
If I were designing this, I'd do it like:
pawn Код:
#define FLOAT_CONST 0.1

stock Complete_mission()
{
     SetPlayerScore(playerid, GetPlayerScore(playerid) + floatround(GetDistance(..) * FLOAT_CONST) );
}
Sorry to not suggest you on your actual code - but please pinpoint the area of problem and post the code! It is quite not so fun going through all the code.
Basically this always gives me 1 score
Код:
		if(iPay[playerid] < 10001){
		iScore[playerid] = 1;
		}
		else if(iPay[playerid] < 20001){
		iScore[playerid] = 2;
		}
		else if(iPay[playerid] > 20000){
		iScore[playerid] = 3;
		}
even if I earn more money..
Reply


Messages In This Thread
Score according to the distance - by wumpyc - 27.07.2013, 11:18
Re: Score according to the distance - by wumpyc - 28.07.2013, 23:13
Re: Score according to the distance - by RajatPawar - 29.07.2013, 05:29
Re: Score according to the distance - by wumpyc - 29.07.2013, 06:22
Re: Score according to the distance - by RajatPawar - 29.07.2013, 06:29
Re: Score according to the distance - by wumpyc - 29.07.2013, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)