Hab ein problem mit mein renn-script. Es gibt ne menge tag mismatch und 2 mal zuviel parameter....habs markiert
#include <a_samp>
#define FILTERSCRIPT
#define rot 0xFF0000AA
#define gelb 0xFFFF00FF
#define NONE_F -1.0
public OnFilterScriptInit()
{
print("Race Script by Maercell");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
DisablePlayerRaceCheckpoint(playerid);
return 1;
}
stock playerLastCheckpoint[MAX_PLAYERS], checkpointPos[][6] = { /* Schema x,y,z, der nächste für den pfeil in dem ding, also coords fürs nächste x,y, z */
{ 1477.3345,1763.6573,10.3776,1476.9408,1501.3993,10.3857 },
{ 1476.9408,1501.3993,10.3857,1477.5575,1193.7247,10.3908 },
{ 1477.5575,1193.7247,10.3908, NONE_F, NONE_F, NONE_F } }; /* <== Hier in den Zeilen ein Haufen tagmismatch */
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/drag",cmdtext,true) == 0)
{
if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),1476.5281,1824.1497,10.3834);
SetVehicleZAngle(GetPlayerVehicleID(playerid),180.0);
SetPlayerRaceCheckpoint(playerid, 1, checkpointPos[0][0], checkpointPos[0][1], checkpointPos[0][2], checkpointPos[0][3], checkpointPos[0][4], checkpointPos[0][5]);// number of arguments does not match with definition
playerLastCheckpoint[playerid] = 0;
}
else
{
SendClientMessage(playerid,rot,"Du brauchst ein Auto dazu!");
}
}
return 0;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
if((sizeof checkpointPos - 1) == playerLastCheckpoint[playerid])
{
GivePlayerMoney(playerid,10000);
SendClientMessage(playerid,gelb,"Du hast das Dragrennen gewonnen!");
GameTextForPlayer(playerid," ~g~ 10000$",1000,1);
}
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]);// number of arguments does not match with definition
}
}
Bitte, ich brauche Hilfe
PS: DMA, Glückwunsch zum 300. Beitrag, den kriegste wenn du mir hilfst xD