06.10.2014, 08:46
here is the function of loadrace
Quote:
function LoadRace(playerid, rName[]) { new rFile[256], string[256] ; format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", rName); if(!dini_Exists(rFile)) return SendClientMessage(playerid, RED, "<!> Race doesn't exist!"), printf("Race \"%s\" doesn't exist!", rName); strmid(RaceName, rName, 0, strlen(rName), sizeof(RaceName)); RaceVehicle = dini_Int(rFile, "vModel"); RaceType = dini_Int(rFile, "rType"); RaceMode = dini_Int(rFile, "RaceMode"); TotalCP = dini_Int(rFile, "TotalCP"); printf("VehicleModel: %d", RaceVehicle); #if DEBUG_RACE == 1 printf("RaceType: %d", RaceType); printf("RaceMode: %d", RaceMode); printf("TotalCheckpoints: %d", TotalCP); #endif |