General > Suggestions
/votepause [Rejected: Could be abused]
[MAF]Rac3r:
Again, nice maths lol Seems a better solution to what I had in mind, also the hacker records I forgot to defend against.
--- Code: ---if(GetRecordData[0][RecordData] > 0)gRace[gTrackTime] = GetRecordData[0][RecordData]/900;
--- End code ---
Definitely a lot better than what I coded, I'll change it to your maths, seems a good solution and well defended against hacked times.
[MAF]mooman:
maths saves the day once again :L
[MAF]Rac3r:
True :P
--- Code: --- if(GetRecordData[5][RecordData] > 0)
{
new Float:a = GetRecordData[5][RecordData]/1000;
a = a * 1.4;
a = a + 15;
gRace[gTrackTime] = FloatToInt(a);
}
--- End code ---
Check it mooman, I think I've followed what you said.
[MAF]mooman:
--- Code: --- if(GetRecordData[5][RecordData] > 0 && GetRecordData[6][RecordData] > 0 && GetRecordData[7][RecordData] > 0 && GetRecordData[8][RecordData] > 0 && GetRecordData[9][RecordData] > 0 && GetRecordData[10][RecordData] > 0) {
new Float:a = (GetRecordData[5][RecordData]+GetRecordData[6][RecordData]+GetRecordData[7][RecordData]+GetRecordData[8][RecordData]+GetRecordData[9][RecordData]+GetRecordData[10][RecordData])/5/1000+30;
gRace[gTrackTime] = FloatToInt(a);
}
--- End code ---
change the 30 to 15 if you're adding the countdown at the start separately
MadMax:
btw can you incerease 600 seconds limit to 1500?
for:
170
Winston_Cup
LS_Street_Series_GP
SF_Street_Series_GP
600 ceconds is not enough, (not even half of race)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version