C:\Windows\Vss\First Person\German Life-v2.5-0.3x\German Life - v2.5 0.3x\gamemodes\ZSP.pwn(49858) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Life-v2.5-0.3x\German Life - v2.5 0.3x\gamemodes\ZSP.pwn(53811) : warning 202: number of arguments does not match definition
if (strcmp("/opark", cmd, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 525 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(PlayerInfo[playerid][pMember] == 24||PlayerInfo[playerid][pLeader] == 24)
{
if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, COLOR_GREY, " An deinem Abschleppwagen ist kein Auto angehängt!");
return 1;
}
new trailercar = GetVehicleTrailer(GetPlayerVehicleID(playerid));
if(!IsADtCar(trailercar))
{
SendClientMessage(playerid, COLOR_GREY, " Dieses Auto kann hier nicht geparkt werden!!");
return 1;
}
new id = GetPlayerVehicleID(playerid);
DetachTrailerFromVehicle(id);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
SetVehiclePos(trailercar, 9999.0, -9999.0, -200.0);
new Carowner = GetDtCarOwner(trailercar);
new slot = GetDtCarOwnerSlot(Carowner,trailercar);
printf("Abgeschleppt: %d slot %d", Carowner, slot);
PlayerCar[Carowner][slot][CarPos_x] = 9999.0;
PlayerCar[Carowner][slot][CarPos_y] = -9999.0;
PlayerCar[Carowner][slot][CarPos_z] = -200.0;
PlayerCar[Carowner][slot][CarRotate] = 0.0;
PlayerCar[Carowner][slot][Abgeschleppt] = 1; //Nicht vergessen im enum hinzuzufügen!
if(Carowner != 555)
{
OnPlayerCarUpdate(Carowner,false); //Zeile 49858
}
SendClientMessage(playerid, COLOR_YELLOW, " Du hast das Fahrzeug erfolgreich abgeschleppt!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Mitglied des Ordnungsamtes!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du musst einen Abschleppwagen fahren!");
return 1;
}
}
if(dialogid == DIALOG_FREIKAUFEN)
{
static place;
new slot = Dtc_PlayerKey[playerid];
switch(place)
{
case 0:
{
SetVehiclePos(PlayerCar[playerid][slot][CarId], 2249.3130,2007.7671,10.5253);
PlayerCar[playerid][slot][CarPos_x] = 2249.0;
PlayerCar[playerid][slot][CarPos_y] = 3130.0;
PlayerCar[playerid][slot][CarPos_z] = 2007.0;
PlayerCar[playerid][slot][CarRotate] = 0.0;
place = 1;
}
case 1:
{
SetVehiclePos(PlayerCar[playerid][slot][CarId], 2245.0942,2007.8237,10.5254);
PlayerCar[playerid][slot][CarPos_x] = 2245.0;
PlayerCar[playerid][slot][CarPos_y] = 0942.0;
PlayerCar[playerid][slot][CarPos_z] = 2007.0;
PlayerCar[playerid][slot][CarRotate] = 0.0;
place = 2;
}
case 2:
{
SetVehiclePos(PlayerCar[playerid][slot][CarId], 2241.0894,2007.8383,10.5254);
PlayerCar[playerid][slot][CarPos_x] = 2241.0;
PlayerCar[playerid][slot][CarPos_y] = 0894.0;
PlayerCar[playerid][slot][CarPos_z] = 2007.0;
PlayerCar[playerid][slot][CarRotate] = 0.0;
place = 0;
}
}
PlayerCar[playerid][slot][Abgeschleppt] = 0;
OnPlayerCarUpdate(playerid,false); //Zeile 53811
return SendClientMessage(playerid, 0xFFFFFFFF, "Freigekauft.");
}