SA-MP Forums Archive
Help me aub. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me aub. (/showthread.php?tid=446534)



Help me aub. - hebron - 26.06.2013

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


Re: Help me aub. - Weaselpwns - 26.06.2013

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

This is not the dutch section!


Re: Help me aub. - yvoms - 26.06.2013

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


Re: Help me aub. - hebron - 26.06.2013

oke de groene teksten zijn de regels waar het om gaat


Re: Help me aub. - Danny - 26.06.2013

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


Re: Help me aub. - hebron - 26.06.2013

i did but yvoms asked me to do that