Haus betreten

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo liebe Leute,


    Ich bräuchte hilfe bei einem kleinen Script wo Ich ein Haus betreten kann.


    Hier einmal vor dem Haus:
    AddPlayerClass(59,1496.8042,-688.1578,95.5459,181.5543,0,0,0,0,0,0); //
    Und einmal in dem Haus:
    AddPlayerClass(48,1206.6329,-888.4376,12.2163,90.3621,0,0,0,0,0,0); //


    kann mir einer helfen wie ich weiter machen soll?..
    Oder besser es macht für mich jemand ^^


    MfG Dani ;)

  • //-----------------------------------------Enter----------------------------------------------
    if(strcmp(cmd, "/Enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1496.8042,-688.1578,95.5459))
    {
    SetPlayerInterior(playerid, 1); //Selber herausfinden
    SetPlayerPos(playerid, 1206.6329,-888.4376,12.2163);
    GameTextForPlayer(playerid, "~G~Willkommen in dem Haus", 5000, 1);


    }}}
    so bitte. mit /enter betreten am besten noch nen pickup an der stelle

  • hat jetz nichts damit zu tun aber was heißt:


    : error 021: symbol already defined: "CreateObject"


    also wie bekomme ich den einen error weg?


    EDIT: den einen hab ich weg...


    C:\...(6) : error 037: invalid string (possibly non-terminated string)
    C:\...(6) : error 029: invalid expression, assumed zero
    C:\...(6) : error 022: must be lvalue (non-constant)
    C:\...(6) : fatal error 107: too many error messages on one line

    Einmal editiert, zuletzt von King_Dani ()

  • Kann ma jemand nach den Fehlern schauen?..


    #include <a_samp>


    main()
    {
    print("\n----------------------------------");
    print(" ------------------------------------);
    print(" -----------------------------------");
    print("----------------------------------\n");
    }


    //Objects here


    CreateObject(3458, 1301.676636, -948.340271, 29.335609, 0.0000, 341.0924, 270.0000);
    CreateObject(3458, 1301.655029, -910.139587, 16.254835, 0.0000, 341.0924, 270.0000);
    CreateObject(3458, 1284.004395, -888.009521, 9.638308, 0.0000, 0.0000, 0.0000);
    CreateObject(3458, 1243.695923, -888.000244, 9.663319, 0.0000, 0.0000, 0.0000);
    CreateObject(3458, 1203.391602, -887.990906, 9.663349, 0.0000, 0.0000, 0.0000);
    CreateObject(14707, 1192.604614, -876.290710, 15.801371, 0.0000, 0.0000, 90.0000);
    CreateObject(11631, 1200.233154, -872.800171, 16.758213, 0.0000, 0.0000, 0.0000);
    CreateObject(1723, 1204.274048, -871.708618, 11.205667, 0.0000, 0.0000, 270.0000);
    CreateObject(1724, 1203.832031, -874.909180, 11.205630, 0.0000, 0.0000, 236.2501);
    CreateObject(1723, 1200.948853, -870.172119, 11.205667, 0.0000, 0.0000, 0.0000);
    CreateObject(14446, 1194.133423, -873.842529, 16.099962, 0.0000, 0.0000, 0.0000);
    CreateObject(2738, 1196.163452, -859.292175, 12.541702, 0.0000, 0.0000, 0.0000);
    CreateObject(2739, 1196.924316, -861.547058, 11.934204, 0.0000, 0.0000, 281.2500);
    CreateObject(2741, 1195.464722, -859.020874, 13.044170, 0.0000, 0.0000, 0.0000);
    CreateObject(2700, 1191.440552, -862.770386, 14.509374, 0.0000, 0.0000, 33.7500);
    CreateObject(2629, 1189.837646, -889.351379, 11.214033, 0.0000, 0.0000, 135.0000);
    CreateObject(2628, 1189.245239, -885.863403, 11.205893, 0.0000, 0.0000, 90.0000);
    CreateObject(2630, 1193.400879, -889.412842, 11.209572, 0.0000, 0.0000, 0.0000);
    CreateObject(2627, 1192.064575, -889.349243, 11.214735, 0.0000, 0.0000, 180.0000);
    CreateObject(2312, 1199.871094, -872.901978, 12.745217, 0.0000, 0.0000, 90.0000);
    CreateObject(1741, 1201.047852, -873.398621, 11.204182, 0.0000, 0.0000, 90.0000);
    CreateObject(1741, 1198.664795, -872.387756, 11.204182, 0.0000, 0.0000, 270.0000);
    CreateObject(1502, 1204.752930, -876.834106, 11.292910, 0.0000, 0.0000, 270.0000);
    CreateObject(936, 1206.083496, -870.656616, 11.686769, 0.0000, 0.0000, 90.0000);
    CreateObject(936, 1206.093384, -874.470154, 11.698874, 0.0000, 0.0000, 90.0000);
    CreateObject(937, 1206.063965, -872.597229, 11.692929, 0.0000, 0.0000, 90.0000);
    CreateObject(2024, 1201.854126, -872.245911, 11.206188, 0.0000, 0.0000, 270.0000);
    CreateObject(2204, 1188.561401, -872.466309, 11.212351, 0.0000, 0.0000, 90.0000);
    CreateObject(2463, 1201.679932, -869.739380, 12.232840, 0.0000, 0.0000, 0.0000);
    CreateObject(2576, 1194.257202, -863.699036, 11.915119, 0.0000, 0.0000, 0.0000);
    CreateObject(14720, 1210.025269, -880.226196, 11.210197, 0.0000, 0.0000, 90.0000);
    CreateObject(2378, 1191.609741, -879.439880, 16.878666, 0.0000, 0.0000, 90.0000);
    CreateObject(2383, 1191.608765, -878.855469, 16.934105, 0.0000, 0.0000, 0.0000);
    CreateObject(2389, 1191.607788, -878.294556, 16.916306, 0.0000, 0.0000, 90.0000);
    CreateObject(2689, 1194.175171, -872.153259, 17.617058, 0.0000, 0.0000, 0.0000);
    CreateObject(2845, 1191.728516, -879.715454, 15.522288, 0.0000, 0.0000, 348.7500);
    CreateObject(2846, 1191.989380, -879.098328, 15.526217, 0.0000, 0.0000, 22.5000);
    CreateObject(2738, 1185.776489, -875.854187, 16.107805, 0.0000, 0.0000, 90.0000);
    CreateObject(2739, 1185.914551, -875.576538, 15.443130, 0.0000, 0.0000, 90.0000);
    CreateObject(2566, 1181.474487, -886.366394, 11.789643, 0.0000, 0.0000, 180.0000);
    CreateObject(2566, 1178.688721, -872.514526, 11.779626, 0.0000, 0.0000, 0.0000);
    CreateObject(2522, 1193.247559, -859.499329, 11.938498, 0.0000, 0.0000, 180.0000);
    CreateObject(2322, 1196.119995, -879.737671, 16.734362, 0.0000, 0.0000, 202.5000);
    CreateObject(2297, 1179.432983, -879.874146, 11.212005, 0.0000, 0.0000, 315.0000);
    CreateObject(2297, 1180.854248, -878.937317, 11.200089, 0.0000, 0.0000, 135.0000);
    CreateObject(2232, 1199.946411, -874.381287, 11.805496, 0.0000, 0.0000, 67.5000);
    CreateObject(2232, 1199.809570, -871.451172, 11.805496, 0.0000, 0.0000, 112.5000);
    CreateObject(2233, 1204.778687, -874.868347, 11.212531, 0.0000, 0.0000, 270.0000);
    CreateObject(2233, 1204.718506, -871.277405, 11.206576, 0.0000, 0.0000, 270.0000);
    CreateObject(2226, 1196.114380, -879.676331, 16.969891, 0.0000, 0.0000, 202.5000);
    CreateObject(1829, 1196.115845, -879.379089, 15.976837, 0.0000, 0.0000, 180.0000);
    CreateObject(1828, 1194.570068, -877.154541, 15.510046, 0.0000, 0.0000, 56.2500);
    CreateObject(2634, 1185.305908, -872.786804, 16.960112, 0.0000, 0.0000, 270.0000);
    CreateObject(1502, 1193.718872, -880.464783, 15.278255, 0.0000, 0.0000, 0.0000);
    CreateObject(1502, 1183.279053, -884.761169, 10.998568, 0.0000, 0.0000, 90.0000);
    CreateObject(1502, 1183.278809, -874.934937, 10.953979, 0.0000, 0.0000, 90.0000);
    CreateObject(1502, 1192.619629, -863.131287, 11.698765, 0.0000, 0.0000, 0.0000);
    CreateObject(643, 1209.717896, -871.450623, 11.685048, 0.0000, 0.0000, 123.7500);

    //-----------------------------------------Enter----------------------------------------------
    {
    if(strcmp(cmd, "/Enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1496.8042,-688.1578,95.5459))
    {
    SetPlayerInterior(playerid, 21);
    SetPlayerPos(playerid, 1206.6329,-888.4376,12.2163);
    GameTextForPlayer(playerid, "Wilkommen", 5000, 1);


    return 1;
    }