Beiträge von DerFamer

    MedicCar = GetPlayerVehicleID(playerid);
    if(MedicCar == 560)
    {
    for(new v;v< sizeof(MedicCar);v++)
    {
    new obj = CreateObject(19419,0,0,0,0,0,0);
    AttachObjectToVehicle(obj, MedicCar[v], 0.000000, 0.000000, 0.814999, 0.000000, 0.000000, 0.000000);
    new kennzeichen[12];
    format(kennzeichen, sizeof(kennzeichen), "LS-%d", randomEx(1000, 9999));
    SetVehicleNumberPlate(MedicCar[v], kennzeichen);
    SetVehicleToRespawn(MedicCar[v]);
    AddVehicleComponent(MedicCar[v], 1010);
    }

    so??

    MedicCar[0] = AddStaticVehicleEx(560,1135.4670,-1344.3352,13.4835,270.0726,3,3,-1); // Medic Sultan
    MedicCar[1] = AddStaticVehicleEx(560,1135.4524,-1341.0098,13.4555,270.2849,3,3,-1); // Medic Sultan
    MedicCar[2] = AddStaticVehicleEx(560,1135.4833,-1337.4728,13.4270,268.8759,3,3,-1); // Medic Sultan
    MedicCar[3] = AddStaticVehicleEx(560,1135.4700,-1333.8889,13.3870,269.5219,3,3,-1); // Medic Sultan
    MedicCar[4] = AddStaticVehicleEx(560,1105.2075,-1332.5597,13.4925,0.4567,3,3,-1); // Medic
    MedicCar[5] = AddStaticVehicleEx(560,1105.1949,-1325.3032,13.4927,359.9940,3,3,-1); // Medic
    MedicCar[6] = AddStaticVehicleEx(560,1118.2987,-1332.5582,13.4869,0.4474,3,3,-1); // Medic
    MedicCar[7] = AddStaticVehicleEx(560,1118.2939,-1325.2173,13.4860,0.4170,3,3,-1); // Medic
    MedicCar[8] = AddStaticVehicleEx(416,1126.3131,-1331.0706,13.2247,358.9008,1,3,-1); // Medic
    MedicCar[9] = AddStaticVehicleEx(416,1122.0341,-1331.0760,13.2277,0.3368,1,3,-1); // Medic
    MedicCar[10] = AddStaticVehicleEx(416,1113.5364,-1331.0712,13.2295,359.9646,1,3,-1); // Medic
    MedicCar[11] = AddStaticVehicleEx(416,1108.9060,-1331.0682,13.2315,358.4521,1,3,-1); // Medic
    MedicCar[12] = AddStaticVehicleEx(416,1096.1415,-1331.0581,13.2309,359.3939,1,3,-1); // Medic
    MedicCar[13] = AddStaticVehicleEx(416,1100.4359,-1331.0629,13.2352,359.6813,1,3,-1); // Medic
    for(new v;v< sizeof(MedicCar);v++)
    {
    new obj = CreateObject(19419,0,0,0,0,0,0);
    AttachObjectToVehicle(obj, MedicCar[v], 0.000000, 0.000000, 0.814999, 0.000000, 0.000000, 0.000000);
    new kennzeichen[12];
    format(kennzeichen, sizeof(kennzeichen), "LS-%d", randomEx(1000, 9999));
    SetVehicleNumberPlate(MedicCar[v], kennzeichen);
    SetVehicleToRespawn(MedicCar[v]);
    AddVehicleComponent(MedicCar[v], 1010);
    }


    Kann man das irgendwie ändern das es nur für Sultan gilt die Sirene wen ja wie ich bitte um Hilfe


    @Jeffry

    Jetzt kommen andere Probleme:


    C:\Windows\Vss\First Person\SAMP-Server\EER Server\pawno\include\morphinc.inc(4) : warning 219: local variable "x2" shadows a variable at a preceding level
    C:\Windows\Vss\First Person\SAMP-Server\EER Server\pawno\include\morphinc.inc(4) : warning 219: local variable "y2" shadows a variable at a preceding level
    C:\Windows\Vss\First Person\SAMP-Server\EER Server\pawno\include\morphinc.inc(4) : warning 219: local variable "z2" shadows a variable at a preceding level
    C:\Windows\Vss\First Person\SAMP-Server\EER Server\pawno\include\M_Bot.inc(576) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
    C:\Windows\Vss\First Person\SAMP-Server\EER Server\gamemodes\hd.pwn(52747) : warning 203: symbol is never used: "M_OnPlayerUpdate"



    Codes habe ich nicht :(

    stock SpielerName(playerid)
    {
    new GetName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,GetName,sizeof(GetName));
    return GetName;
    }


    C:\Windows\Vss\First Person\SAMP-Server\EER Server\gamemodes\hd.pwn(52769) : warning 219: local variable "GetName" shadows a variable at a preceding level

    C:\Windows\Vss\First Person\SAMP-Server\EER Server\gamemodes\hd.pwn(16831) : warning 219: local variable "g_Object" shadows a variable at a preceding level
    C:\Windows\Vss\First Person\SAMP-Server\EER Server\gamemodes\hd.pwn(18804) : error 032: array index out of bounds (variable "g_Object")
    C:\Windows\Vss\First Person\SAMP-Server\EER Server\gamemodes\hd.pwn(18805) : error 032: array index out of bounds (variable "g_Object")


    new g_Object[1165];