help about drift point
#1

im using drift point counter i add setplayerscore but the score keep changing it doesnt + the other score.please help


public DriftExit(playerid){ // By Luby
PlayerDriftCancellation[playerid] = 0;


int Float:h;
GetVehicleHealth(GetPlayerVehicleID(playerid),h);
if(DriftPointsNow[playerid]>70 && DriftPointsNow[playerid]<10000 && h==HealthInit[playerid])
GivePlayerMoney(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]);
SetPlayerScore(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]);
TextDrawHideForPlayer(playerid,TDLabels[0]);
TextDrawHideForPlayer(playerid,TDLabels[1]);
TextDrawHideForPlayer(playerid,TDLabels[2]);
TextDrawHideForPlayer(playerid,TDValueDrift[playerid]);
TextDrawHideForPlayer(playerid,TDValueBonus[playerid]);
TextDrawHideForPlayer(playerid,TDValueCash[playerid]);
DriftBonus[playerid]=1;
AutoFixBool[playerid]=true;
SetVehicleHealth(GetPlayerVehicleID(playerid),Heal thInit[playerid]);
////////////////////////////////////////////////////

DriftPointsNow[playerid] = 0;
}
Reply
#2

I don't know if your gonna still check this but here you go
Код:
public DriftExit(playerid){ // By Luby
PlayerDriftCancellation[playerid] = 0;


int Float:h;
GetVehicleHealth(GetPlayerVehicleID(playerid),h);
if(DriftPointsNow[playerid]>70 && DriftPointsNow[playerid]<10000 && h==HealthInit[playerid])
GivePlayerMoney(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]);
SetPlayerScore(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]);
TextDrawHideForPlayer(playerid,TDLabels[0]);
TextDrawHideForPlayer(playerid,TDLabels[1]);
TextDrawHideForPlayer(playerid,TDLabels[2]);
TextDrawHideForPlayer(playerid,TDValueDrift[playerid]);
TextDrawHideForPlayer(playerid,TDValueBonus[playerid]);
TextDrawHideForPlayer(playerid,TDValueCash[playerid]);
DriftBonus[playerid]=1;
AutoFixBool[playerid]=true;
SetVehicleHealth(GetPlayerVehicleID(playerid),Heal thInit[playerid]);
SetPlayerScore(playerid, GetPlayerScore(playerid,DriftPointsNow[playerid]+DriftBonus[playerid]*2);
////////////////////////////////////////////////////

DriftPointsNow[playerid] = 0;
}
Tell me if there are any errors or warnings cause im not at home and can't check that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)