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..