y_races
#1

is 4.6 mega big for only

pawn Код:
public OnFilterScriptInit()
{
    Langs_AddLanguage("IT","Italian");
    gRace = Race_Create();
    Race_SetLaps(gRace, 0);
    Race_SetEntry(gRace, 0);
    Race_SetFixedWin(gRace, false);
    Race_SetExitTime(gRace, 5);
    Race_SetInterior(gRace, 0);
    Race_SetWorld(gRace, 400);
    Race_AddStart(gRace, -305.5157,1510.1431,75.0187,183.6269);
    Race_AddStart(gRace, -299.2621,1510.3364,75.0186,182.6061);
    Race_AddCheckpoint(gRace, -306.8676,1396.6772,71.9437);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
+ y_races? or is normal?
Reply
#2

Yes is normal? or yes is too big?
Reply
#3

Yea i know but just for info.

Another question.

When i create the race, all required player joined, race started and ended with a winner ect.. i cant use again that race becouse is destroyed right?

becouse when i try to enter in race when is finish is not starting.. i have to reloadfs
Reply
#4

Oh my bad. many thanks

iJumbo.

EDIT:

Is "IT","Italian" correct syntax for italian language on y races? becouse says no lang file founded or something like that
Reply
#5

Yes in scriptfiles/YSI/text
Reply
#6

You can see where i add Langs_AddLanguage in the script

Attach of error
Reply
#7

What you mean?

oh so is a bug..

in core.IT

Код:
[ysi_race]

YSI_RACE_COUNTDOWN = %d
YSI_RACE_GO = VIA VIA VIA!!!
must be

Код:
[ysi_races]

YSI_RACE_COUNTDOWN = %d
YSI_RACE_GO = VIA VIA VIA!!!
?

EDIT: mmh no seems not work anyway..

another bug i found is like

/enterrace << make me enter the race and wait for start
/startrace << start the race and when i enter in last checkpoint is working fine..

ok now i type again /enterrace.. when i type /startrace i get teleported and prepared for race but server freeze i think on an infinite loop :/
Reply
#8

Bump 24 hr ..
Reply
#9

Post /startrace and /enterrace command.
Reply
#10

pawn Код:
Langs_AddLanguage("IT","Italian");
    Race = Race_Create();
    Race_SetLaps(Race, 0);
    Race_SetEntry(Race, 0);
    Race_SetFixedWin(Race, false);
    Race_SetExitTime(Race, 5);
    Race_SetInterior(Race, 0);
    Race_SetWorld(Race, 400);
    Race_SetRestart(Race, true);
    Race_AddStart(Race, -305.5157,1510.1431,75.0187,183.6269);
    Race_AddStart(Race, -299.2621,1510.3364,75.0186,182.6061);
    Race_AddCheckpoint(Race, -306.8676,1396.6772,71.9437);
pawn Код:
Race_PlayerJoin(playerid, Race);
Race_Start(Race);
that all the code ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)