bei mir kommen so einige errors
\Desktop\Grand Theft Auto San Andreas\ReadMe\SA.MP Server 0.3e\gamemodes\GDS.pwn(1298) : error 003: declaration of a local variable must appear in a compound block
\Desktop\Grand Theft Auto San Andreas\ReadMe\SA.MP Server 0.3e\gamemodes\GDS.pwn(1427) : error 033: array must be indexed (variable "MuellCheckpoint")
\Desktop\Grand Theft Auto San Andreas\ReadMe\SA.MP Server 0.3e\gamemodes\GDS.pwn(1428) : error 017: undefined symbol "vehicleid"
\Desktop\Grand Theft Auto San Andreas\ReadMe\SA.MP Server 0.3e\gamemodes\GDS.pwn(1429) : error 003: declaration of a local variable must appear in a compound block
\Desktop\Grand Theft Auto San Andreas\ReadMe\SA.MP Server 0.3e\gamemodes\GDS.pwn(1429) : error 017: undefined symbol "vehicleid"
\Desktop\Grand Theft Auto San Andreas\ReadMe\SA.MP Server 0.3e\gamemodes\GDS.pwn(1442) : warning 219: local variable "rand" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Hier der /duty befehl für Müllmann:
if (strcmp("/Müllmann", cmdtext, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
for(new i=0; i<11; i++)
if(vehicleid == trash[i])
new rand = random(sizeof(MuellCheckpoint)); //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Error 1 und 2
SetPlayerCheckpoint(playerid,MuellCheckpoint[rand][0],MuellCheckpoint[rand][1],MuellCheckpoint[rand][2],3);//<<<<<<<<<<< Error 3
return 1;
}
OnPlayerEnterCheckpoint:
{
if(MuellCheckpoint[playerid]) //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Error 4
new vehicleid = GetPlayerVehicleID(playerid); //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Error 5 / 6
if(vehicleid == trash[i]) // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Error 7
for(new i=0; i<11; i++)
SendClientMessage(playerid,Orange,"Müll abgeholt. Gehalt pro Checkpoint '25$'");
DisablePlayerCheckpoint(playerid);
TogglePlayerControllable(playerid, 0);//Timer setzen. In der Timer Funktion wird dann der neue CP gesetzt.
SendClientMessage(playerid,Weiß,"Müll wird abgeholt...");
GivePlayerMoney(playerid,25);
SetTimerEx("Wiederfahren", 1000*3, 0, "i", playerid);
return 1;
}
puplic weiterfahren
public Wiederfahren(playerid)
{
TogglePlayerControllable(playerid,1);//Spieler entfreezen
new rand = random(sizeof(MuellCheckpoint));
SetPlayerCheckpoint(playerid,MuellCheckpoint[rand][0],MuellCheckpoint[rand][1],MuellCheckpoint[rand][2],3);
return 1;
}