Guten Tag sa-mp.de
Ich habe ein Problem ich wollte das yrace filterscript ins gamemode rein machen.
Aber es kommen errors die ich nicht weg bekomme und hoffe das ihr mir weiter helfen könnt.
Hier alles was dazu gehört:
new RaceParticipant[MAX_PLAYERS];
forward RaceParticipant(playerid);
public OnPlayerDisconnect(playerid, reason)
{
if(RaceParticipant[playerid]>=1)
{
if(Participants==1) //Last participant leaving, ending race.
{
endrace();
}
if(RaceParticipant[playerid] < 3 && RaceStart == 0 && !(RaceParticipant[playerid]==3 && RaceStart == 1))
{ //Doing readycheck since someone left, but not if they disconnected during countdown.
ReadyRefresh();
}
Participants--;
RaceParticipant[playerid]=0;
DisablePlayerRaceCheckpoint(playerid);
}
if(RaceBuilders[playerid] != 0)
{
DisablePlayerRaceCheckpoint(playerid);
for(new i;i<BCurrentCheckpoints[b(playerid)];i++)
{
BRaceCheckpoints[b(playerid)][i][0]=0.0;
BRaceCheckpoints[b(playerid)][i][1]=0.0;
BRaceCheckpoints[b(playerid)][i][2]=0.0;
}
BuilderSlots[b(playerid)] = MAX_PLAYERS+1;
RaceBuilders[playerid] = 0;
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Die Errors:
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3814) : error 010: invalid function or declaration
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3816) : error 010: invalid function or declaration
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3819) : error 054: unmatched closing brace ("}")
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3820) : error 010: invalid function or declaration
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3823) : error 054: unmatched closing brace ("}")
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3828) : error 010: invalid function or declaration
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3831) : error 010: invalid function or declaration
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3839) : error 010: invalid function or declaration
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(3842) : error 021: symbol already defined: "strtok"
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(5116) : error 028: invalid subscript (not an array or too many subscripts): "RaceParticipant"
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(5116) : warning 215: expression has no effect
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(5116) : error 001: expected token: ";", but found "]"
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(5116) : error 029: invalid expression, assumed zero
C:\Users\sTyLeR\Desktop\netmario_rl16.pwn(5116) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Errors.
Ich hoffe auf eine hilfsbereite Person und bedanke mich im vorraus