if (strcmp("/parken", cmdtext, true, 10) == 0)
{
if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
new newcar = GetPlayerVehicleID(playerid);
if (newcar == PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId])
{
new Float:X,Float:Y,Float:Z;
new Float:z_rot;
GetPlayerPos(playerid, X,Y,Z);
GetVehicleZAngle(newcar, z_rot);
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x] = X;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y] = Y;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z] = Z;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate] = z_rot;
SendClientMessage(playerid, COLOR_YELLOW, " Du hast dein Fahrzeug hier geparkt, ab nun kannst du dein Fahrzeug hier finden!");
}
else if (newcar == Dtc_ParkRights[playerid])
{
new Float:X,Float:Y,Float:Z;
new Float:z_rot;
GetPlayerPos(playerid, X,Y,Z);
GetVehicleZAngle(newcar, z_rot);
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x] = X;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y] = Y;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z] = Z;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate] = z_rot;
SendClientMessage(playerid, COLOR_YELLOW, " Du hast dieses Fahrzeug hier geparkt, ab nun kannst du dieses Fahrzeug hier finden!");
}
else
{
SendClientMessage(playerid,COLOR_GREY," Du bist nicht in deinem Fahrzeug/Du hast nicht den Schlüssel zu diesem Fahrzeug ausgewählt!");
return 1;
}
}
else if (Dtc_ParkRights[playerid] != 0)
{
new newcar = GetPlayerVehicleID(playerid);
if (newcar == Dtc_ParkRights[playerid])
{
new Float:X,Float:Y,Float:Z;
new Float:z_rot;
GetPlayerPos(playerid, X,Y,Z);
GetVehicleZAngle(newcar, z_rot);
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x] = X;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y] = Y;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z] = Z;
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate] = z_rot;
SendClientMessage(playerid, COLOR_YELLOW, " Du hast dieses Fahrzeug hier geparkt, ab nun kannst du dieses Fahrzeug hier finden!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du besitzt Kein Fahrzeug für deinen Ausgewählten Schlüssel!");
return 1;
}
return 1;
}
C:\Program Files\Rockstar Games\GTA San Andreas2\gamemodes\sagc.pwn(16481) : error 035: argument type mismatch (argument 2)
C:\Program Files\Rockstar Games\GTA San Andreas2\gamemodes\sagc.pwn(16493) : error 035: argument type mismatch (argument 2)
C:\Program Files\Rockstar Games\GTA San Andreas2\gamemodes\sagc.pwn(16514) : error 035: argument type mismatch (argument 2)
Die fehler sind in die zeilen )?
Zeile 10;22;43
Hoffe ihr könnt mir helfen
MFG Mipu