Beiträge von Loganpunkt

    Ich hab etz hier den code aber das geht mir nicht:


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    new spdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(spdatei,sizeof(spdatei),"/Spieler/%s.txt",name);
    for(new i=0; i<sizeof(pdcars); i++)
    {
    if(GetPlayerVehicleID(playerid)==pdcars[i])
    {
    if(GetPVarInt(playerid,"Fraktion") == 0)
    {
    TogglePlayerControllable(playerid,0);
    TogglePlayerControllable(playerid,1);
    }
    }
    }
    return 1;
    }



    meine cars:
    public OnGameModeInit()
    {
    SetGameModeText("It's Roleplay");
    DisableInteriorEnterExits();
    EnableStuntBonusForAll(0);
    SetTimerEx("Blitzer_Timer", BLITZER_TIMER_INTERVALL, 1,"i");
    pdcars[0]=AddStaticVehicle(596,1601.9071,-1684.2040,5.6111,90.6188,0,1); // PD1
    pdcars[1]=AddStaticVehicle(596,1602.4087,-1688.0742,5.6121,88.7209,0,1); // PD2
    pdcars[2]=AddStaticVehicle(596,1600.6130,-1691.8049,5.6123,90.9331,0,1); // PD3
    pdcars[3]=AddStaticVehicle(596,1600.7987,-1696.2317,5.6129,89.9640,0,1); // PD4
    pdcars[4]=AddStaticVehicle(596,1600.8124,-1700.2335,5.6094,89.7960,0,1); // PD5
    pdcars[5]=AddStaticVehicle(596,1600.5302,-1704.3290,5.6119,91.7927,0,1); // PD6
    pdcars[6]=AddStaticVehicle(599,1526.9954,-1646.8000,6.0813,180.3619,0,1); // PD7
    pdcars[7]=AddStaticVehicle(599,1530.8228,-1645.1415,6.0755,180.9456,0,1); // PD8
    pdcars[8]=AddStaticVehicle(599,1534.7310,-1646.1417,6.0794,180.8065,0,1); // PD9
    pdcars[9]=AddStaticVehicle(599,1538.5476,-1646.4534,6.0821,179.3053,0,1); // PD10
    pdcars[10]=AddStaticVehicle(599,1544.6266,-1651.4513,6.0769,91.2445,0,1); // PD11
    pdcars[11]=AddStaticVehicle(598,1544.2119,-1655.3127,5.6318,86.8258,0,1); // PD12
    pdcars[12]=AddStaticVehicle(598,1543.0275,-1659.0039,5.6373,87.9473,0,1); // PD13
    pdcars[13]=AddStaticVehicle(598,1545.0125,-1662.7202,5.6363,88.3559,0,1); // PD14
    pdcars[14]=AddStaticVehicle(598,1545.9520,-1667.9072,5.6372,92.8925,0,1); // PD15
    pdcars[15]=AddStaticVehicle(598,1543.6979,-1672.0725,5.6409,88.8183,0,1); // PD16
    pdcars[16]=AddStaticVehicle(598,1543.4048,-1676.3209,5.6399,88.0957,0,1); // PD17
    pdcars[17]=AddStaticVehicle(598,1543.0619,-1680.7831,5.6375,88.3582,0,1); // PD18
    pdcars[18]=AddStaticVehicle(598,1545.1174,-1683.9683,5.6378,90.3321,0,1); // PD19
    pdcars[19]=AddStaticVehicle(598,1530.0485,-1684.2091,5.6384,89.7693,0,1); // PD20
    pdcars[20]=AddStaticVehicle(598,1528.8342,-1687.7418,5.6363,97.5751,0,1); // PD21
    return 1;
    }



    Egal in welches auto ich einsteige ich werde gefrezzed und enfeezed

    Heyho leute ich habe ein bug mit meinem tutorial. Wenn ich mein tutorial mache und gleichzeitig jemand anderes joint kann dieser kein tutorial machen und ich bugg im tutorial ständing vor oder zurück:
    Hier mal meine forwards:
    forward TutorialStep1(playerid);
    forward TutorialStep2(playerid);
    forward TutorialStep3(playerid);
    forward TutorialStep4(playerid);
    forward TutorialStep5(playerid);


    Mein onplayerspawn:


    //TutooriAL!
    new spdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(spdatei,sizeof(spdatei),"/Spieler/%s.txt",name);
    if(dini_Int(spdatei,"Tutorial") == 0)
    {
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid,GELB,"|____________Willkommen auf It's Roleplay____________|");
    SendClientMessage(playerid,GELB,"Da du neu hier bist wird das Tutorial gleich beginnen");
    SendClientMessage(playerid,GELB,"|_____________________________________________________|");
    SetTimer("TutorialStep1",10000,false);
    }
    StopAudioStreamForPlayer(playerid);


    meine Publics:


    public TutorialStep1(playerid)
    {
    SetPlayerPos(playerid,101.9369,-1785.6110,191.5809);
    PlayAudioStreamForPlayer(playerid,"http://its-rp.com/server/Uplifting%20Cinematic%20Music%20-%20Above%20Everything.mp3");
    InterpolateCameraPos(playerid, 397.235748, -1782.103881, 9.063181, 446.764312, -1777.777221, 11.103442, 10000);
    InterpolateCameraLookAt(playerid, 397.380371, -1787.098999, 8.895244, 442.204284, -1779.805297, 10.798943, 10000);
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"|__________________Noobspawn________________|");
    SendClientMessage(playerid,GELB,"Das ist der Noobspawn hier spawnen alle Anfänger");
    SendClientMessage(playerid,GELB,"Wenn du in einer Fraktion bist spawnst du dort.");
    SendClientMessage(playerid,GELB,"Solltest du ein Haus haben spawnst du auch dort.");
    SetTimer("TutorialStep2",15000,false);
    return 1;
    }
    public TutorialStep2(playerid)
    {
    InterpolateCameraPos(playerid, 1504.762695, -1644.805053, 24.697599, 1484.693725, -1647.814575, 25.449710, 10000);
    InterpolateCameraLookAt(playerid, 1508.558837, -1647.930053, 23.789810, 1489.112915, -1650.057006, 24.784927, 10000);
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"|________________Police Department______________|");
    SendClientMessage(playerid,GELB,"Die Polizei dein Freund & Helfer.");
    SendClientMessage(playerid,GELB,"Benötigst du einmal Hilf so benutze /service");
    SendClientMessage(playerid,GELB,"Die Polizei wird sich dann um dich kümmern!");
    SetTimer("TutorialStep3",15000,false);
    return 1;
    }
    public TutorialStep3(playerid)
    {
    InterpolateCameraPos(playerid, 1483.369506, -1044.340942, 28.966062, 1397.226562, -1041.148437, 30.840740, 10000);
    InterpolateCameraLookAt(playerid, 1480.282958, -1040.414794, 29.208154, 1402.058959, -1039.932983, 30.427150, 10000);
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"|_______________BANK_____________|");
    SendClientMessage(playerid,GELB,"Das hier ist die Bank von Los Santos");
    SendClientMessage(playerid,GELB,"Räuber und Gangs können diese Ausrauben");
    SendClientMessage(playerid,GELB,"Aber versucht es lieber nicht.");
    SendClientMessage(playerid,GELB,"Die Polizei ist nämlich schnell an Ort und stelle!");
    SetTimer("TutorialStep4",15000,false);
    return 1;
    }
    public TutorialStep4(playerid)
    {
    InterpolateCameraPos(playerid, 1230.756713, -939.616455, 49.469944, 1162.879272, -954.370727, 51.511638, 10000);
    InterpolateCameraLookAt(playerid, 1227.485351, -935.852294, 49.110877, 1166.430053, -950.917846, 50.826301, 10000);
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"|__________Burger Shot North________|");
    SendClientMessage(playerid,GELB,"Das ist der BSN hier kannst du Essen und Trinken.");
    SendClientMessage(playerid,GELB,"Du kannst dich hier aber auch mit Freunden Treffen.");
    SetTimer("TutorialStep5",15000,0);
    return 1;
    }
    public TutorialStep5(playerid)
    {
    new spdatei[64];
    new string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(spdatei,sizeof(spdatei),"/Spieler/%s.txt",name);
    InterpolateCameraPos(playerid, 481.417266, -1373.562622, 73.571868, 812.001098, -1403.069702, 25.293113, 10000);
    InterpolateCameraLookAt(playerid, 486.167205, -1374.062255, 72.092506, 813.297424, -1398.274169, 24.725706, 10000);
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"");
    SendClientMessage(playerid,GELB,"|____________INFORMATION_________|");
    SendClientMessage(playerid,GELB,"Solltest du einen Cheater sehen Reporte ihn! (/report)");
    SendClientMessage(playerid,GELB,"Besuch doch auch unser Forum:'its-rp.com'");
    SendClientMessage(playerid,GELB,"Besuch doch auch unseren Teamspeak³ Server: //");
    SendClientMessage(playerid,GELB,"Wir wünschen dir weiterhin viel Spaß auf It's Roleplay!");
    TogglePlayerControllable(playerid,1);
    dini_IntSet(spdatei,"Tutorial",1);
    SpawnPlayer(playerid);
    format(string,sizeof(string),"[Server:]Begrüßt alle unseren neuen Spieler %s.",name);
    SendClientMessageToAll(LILA,string);
    StopAudioStreamForPlayer(playerid);
    return 1;
    }


    Danke ;)

    if(IsPlayerInFrac(playerid, 1))//Ob Spieler in der Fraktion ist
    {
    if(IsPlayerInRangeOfPoint(playerid, RANGE,x,y,z))
    {
    //Also hier hin!
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    MoveDynamicObject(lvpdtorlspd1, 1460.33, -1817.77, 11.96, 3.0);
    SetTimer("Closelvpdtorlspd1", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Garagentor ist offen. Beeil dich es schließt in 5 Sekunden");
    }
    }

    Hey leute ich hab mal mit dem Cameditor rumgespielt und habe nun das eingefügt.
    InterpolateCameraPos(playerid, 397.235748, -1782.103881, 9.063181, 446.764312, -1777.777221, 11.103442, 10000);
    InterpolateCameraLookAt(playerid, 397.380371, -1787.098999, 8.895244, 442.204284, -1779.805297, 10.798943, 10000);


    Jetzt bekomm ich aber einen Error:
    undefined symbol "InterpolateCameraPos"
    undefined symbol "InterpolateCameraLookAt"


    Help ;)

    public TutorialStep1(playerid)// WTF ?! Error hier
    {
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid,GELB,"|_____________________Noobspawn______________|");
    SendClientMessage(playerid,GELB,"Das ist der Noobspawn hier spawnen alle Anfänger");
    SendClientMessage(playerid,GELB,"Wenn du in einer Fraktion bist spawnst du dort.");
    SendClientMessage(playerid,GELB,"Solltest du ein Haus haben spawnst du auch dort.");
    TogglePlayerControllable(playerid,1);
    return 1;
    }


    Error:
    error 025: function heading differs from prototype