Hallo Ich Muss Leider ein Neues Aufmachen da das Thread Geschlossen Wurde Klick
Ich Bin Grade dabei eine Eigende Fahrschule zu scripten mit abzufahrende Checkpoints .
Jetz habe ich das so Gemacht wie es aus dem thread DMA gemacht hat mit Mehreren Checkpoints jetz Habe ich aber 88 Warnings die Zeilen dazu sind diese :
if(strcmp(cmd, "/Fahrschule", true) == 0)
{
if(PlayerToPoint(2.0, playerid,1452.3479,-1023.1932,23.8281 ))
{
SetPlayerRaceCheckpoint(playerid, 1, checkpointPos[0][0], checkpointPos[0][1],
checkpointPos[0][2], checkpointPos[0][3], checkpointPos[0][4],
checkpointPos[0][5], checkpointPos[0][6], checkpointPos[0][7],
checkpointPos[0][8], checkpointPos[0][9], checkpointPos[0][10],
checkpointPos[0][11], checkpointPos[0][12], checkpointPos[0][13],
checkpointPos[0][14], checkpointPos[0][15], checkpointPos[0][16],
checkpointPos[0][17], checkpointPos[0][18], checkpointPos[0][19],
checkpointPos[0][20], checkpointPos[0][21], checkpointPos[0][22],
checkpointPos[0][23], checkpointPos[0][24], checkpointPos[0][25],
checkpointPos[0][26], checkpointPos[0][27], checkpointPos[0][28],
checkpointPos[0][29], checkpointPos[0][30], checkpointPos[0][31],
checkpointPos[0][32], checkpointPos[0][33], checkpointPos[0][34],
checkpointPos[0][35], checkpointPos[0][36], checkpointPos[0][37],
checkpointPos[0][38], checkpointPos[0][39], checkpointPos[0][40],
checkpointPos[0][41], checkpointPos[0][42], checkpointPos[0][43],
checkpointPos[0][44], checkpointPos[0][45], checkpointPos[0][46],
checkpointPos[0][47], checkpointPos[0][48],SIZE_OF_CP);// number of arguments does not match with definition
playerLastCheckpoint[playerid] = 0;
}
else
{
SendClientMessage(playerid,rot,"Befindest dich nicht an der Fahrschule");
}
}
Und Diese Zeilen :
public OnPlayerEnterRaceCheckpoint(playerid)
{
if((sizeof checkpointPos - 1) == playerLastCheckpoint[playerid])
{
SendClientMessage(playerid,gelb,"Du Hast die Fahrprüfung Bestanden Glückwunsch");
DisablePlayerRaceCheckpoint(playerid);
}
else
{
DisablePlayerRaceCheckpoint(playerid);
playerLastCheckpoint[playerid] += 1;
SetPlayerRaceCheckpoint(playerid, 1,
checkpointPos[playerLastCheckpoint[playerid]][0],checkpointPos[playerLastCheckpoint[playerid]][1],
checkpointPos[playerLastCheckpoint[playerid]][2],checkpointPos[playerLastCheckpoint[playerid]][3],
checkpointPos[playerLastCheckpoint[playerid]][4],checkpointPos[playerLastCheckpoint[playerid]][5],
checkpointPos[playerLastCheckpoint[playerid]][6],checkpointPos[playerLastCheckpoint[playerid]][7],
checkpointPos[playerLastCheckpoint[playerid]][8],checkpointPos[playerLastCheckpoint[playerid]][9],
checkpointPos[playerLastCheckpoint[playerid]][10],checkpointPos[playerLastCheckpoint[playerid]][11],
checkpointPos[playerLastCheckpoint[playerid]][12],
checkpointPos[playerLastCheckpoint[playerid]][13], checkpointPos[playerLastCheckpoint[playerid]][14],
checkpointPos[playerLastCheckpoint[playerid]][15], checkpointPos[playerLastCheckpoint[playerid]][16],
checkpointPos[playerLastCheckpoint[playerid]][17], checkpointPos[playerLastCheckpoint[playerid]][18],
checkpointPos[playerLastCheckpoint[playerid]][19], checkpointPos[playerLastCheckpoint[playerid]][20],
checkpointPos[playerLastCheckpoint[playerid]][21], checkpointPos[playerLastCheckpoint[playerid]][22],
checkpointPos[playerLastCheckpoint[playerid]][23], checkpointPos[playerLastCheckpoint[playerid]][24],
checkpointPos[playerLastCheckpoint[playerid]][25], checkpointPos[playerLastCheckpoint[playerid]][26],
checkpointPos[playerLastCheckpoint[playerid]][27], checkpointPos[playerLastCheckpoint[playerid]][28],
checkpointPos[playerLastCheckpoint[playerid]][29], checkpointPos[playerLastCheckpoint[playerid]][30],
checkpointPos[playerLastCheckpoint[playerid]][31], checkpointPos[playerLastCheckpoint[playerid]][32],
checkpointPos[playerLastCheckpoint[playerid]][33], checkpointPos[playerLastCheckpoint[playerid]][34],
checkpointPos[playerLastCheckpoint[playerid]][35], checkpointPos[playerLastCheckpoint[playerid]][36],
checkpointPos[playerLastCheckpoint[playerid]][37], checkpointPos[playerLastCheckpoint[playerid]][38],
checkpointPos[playerLastCheckpoint[playerid]][39], checkpointPos[playerLastCheckpoint[playerid]][40],
checkpointPos[playerLastCheckpoint[playerid]][41], checkpointPos[playerLastCheckpoint[playerid]][42],
checkpointPos[playerLastCheckpoint[playerid]][43], checkpointPos[playerLastCheckpoint[playerid]][44],
checkpointPos[playerLastCheckpoint[playerid]][45], checkpointPos[playerLastCheckpoint[playerid]][46],
checkpointPos[playerLastCheckpoint[playerid]][47], checkpointPos[playerLastCheckpoint[playerid]][48],
SIZE_OF_CP);
}
}
Fehler sind die :
E:\Users\Chakuza\gta sa\Nützliche Scripte\samp022server\samp022server.win32\gamemodes\Meine Eigende Gamemode\Crazy~World.pwn(19796 -- 19811) : warning 202: number of arguments does not match definition
Das ist nur Ein Teil Will nicht alle 88 Warnings Posten der Fehler ist aber der Selbe.
Thx für Hilfe