Help me aub.
#1

Hallo,
ik wil graag kijken of een race een bepaalde race is, zo ja, dan de racetime lang of kort.
nu heb ik het zo staan als hieronder maar krijg ik een paar fout meldingen

new rNameFile [128];
format(rNameFile, sizeof(rNameFile), "/rRaceSystem/RaceNames/RaceNames.txt");
format(string, sizeof(string), "Race_%d", dini_Get(rNameFile, string));
if "Race_%d", == "Race_5";
Position = 0;
FinishCount = 0;
JoinCount = 0;
Loop(x, 2) PlayersCount[x] = 0;
Joined[playerid] = true;
CountAmount = COUNT_DOWN_TILL_RACE_START;
RaceTime = MAX_RACE_TIME_LONG;
RaceBusy = 0x01;
TimeProgress = 0;
SetupRaceForPlayer(playerid);
CountTimer = SetTimer("CountTillRace", 999, 1);
else
Position = 0;
FinishCount = 0;
JoinCount = 0;
Loop(x, 2) PlayersCount[x] = 0;
Joined[playerid] = true;
CountAmount = COUNT_DOWN_TILL_RACE_START;
RaceTime = MAX_RACE_TIME;
RaceBusy = 0x01;
TimeProgress = 0;
SetupRaceForPlayer(playerid);
CountTimer = SetTimer("CountTillRace", 999, 1);

return 1;
}

alleen ik krijg

C:\Program Files\Rockstar Games\gamemodes\gmd.pwn(1684) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\gamemodes\gmd.pwn(1684) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\gamemodes\gmd.pwn(1696) : error 029: invalid expression, assumed zero

regel 1684:
if "Race_%d", == "Race_5";


ik heb het ook zo geprobeerd
if string, "Race_%d", == "Race_5";

maar dan krijg ik dezelfde meldingen

kan iemand mij hiermee helpen?

als het makkelijker kan of iemand een beter idee heeft mag je dat ook melden.

de groene tekst zijn regel 1684 en 1696
Reply
#2

Post this here: http://forum.sa-mp.com/forumdisplay.php?f=31

This is not the dutch section!
Reply
#3

welke zijn de lijnen ( 1684, 1696)?
Moet je even highlighten dan kan ik even kijken voor je.
Reply
#4

oke de groene teksten zijn de regels waar het om gaat
Reply
#5

Dude, this is not the Dutch subforum. Post it there and we'll try to help you.
Reply
#6

i did but yvoms asked me to do that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)