Mapping Problem

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
  • Hey,
    habe etwas gemappt und wollte es in einen Filterscript bringen.
    Nun werden Ingame aber die gemappten Objekte nicht angezeigt! Wieso?
    Der Befehl bei OnPlayerCommandtext funktioniert ja..
    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Mapping by JayTheSheep - (c)2010 - V0.1a");
    print("--------------------------------------\n");
    CreateObject(980, 2738.235840, -1147.055420, 71.187454, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2722.149658, -1146.910278, 71.187454, 0.0000, 0.0000, 0.0000);
    CreateObject(5837, 2730.180176, -1145.870728, 70.295624, 0.0000, 0.0000, 270.0000);
    CreateObject(640, 2713.377930, -1124.567871, 69.275162, 0.0000, 0.0000, 0.0000);
    CreateObject(640, 2713.375977, -1119.217529, 69.275162, 0.0000, 0.0000, 0.0000);
    CreateObject(640, 2713.360840, -1113.855103, 69.269348, 0.0000, 0.0000, 0.0000);
    CreateObject(1597, 2729.916504, -1132.781372, 71.235504, 0.0000, 0.0000, 0.0000);
    CreateObject(1597, 2730.027832, -1126.089111, 71.235504, 0.0000, 0.0000, 0.0000);
    CreateObject(4639, 2745.788330, -1146.973511, 70.274704, 0.0000, 0.0000, 0.0000);
    CreateObject(4639, 2714.499512, -1147.241577, 70.274704, 0.0000, 0.0000, 0.0000);
    CreateObject(1597, 2729.977295, -1115.829346, 71.235504, 0.0000, 0.0000, 0.0000);
    CreateObject(1597, 2729.945068, -1109.315308, 71.230804, 0.0000, 0.0000, 0.0000);
    CreateObject(1597, 2728.038574, -1089.868286, 71.232330, 0.0000, 0.0000, 22.5000);
    CreateObject(2587, 2712.813965, -1125.624512, 70.347649, 0.0000, 0.0000, 90.0000);
    CreateObject(2745, 2744.423828, -1136.322266, 69.786743, 0.0000, 0.0000, 270.0000);
    CreateObject(3471, 2714.920410, -1149.687012, 69.852661, 0.0000, 0.0000, 270.0000);
    CreateObject(3471, 2745.089600, -1149.808472, 69.852661, 0.0000, 0.0000, 270.0000);
    CreateObject(3471, 2730.189697, -1152.818848, 69.852661, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2722.119629, -1099.707153, 71.187454, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2737.957764, -1099.820190, 71.187454, 0.0000, 0.0000, 0.0000);
    CreateObject(5837, 2729.840820, -1099.446533, 70.293320, 0.0000, 0.0000, 270.0000);
    CreateObject(4639, 2714.989990, -1099.906738, 70.276886, 0.0000, 0.0000, 0.0000);
    CreateObject(982, 2743.969971, -1112.709717, 69.261681, 0.0000, 0.0000, 0.0000);
    CreateObject(983, 2743.985107, -1128.662964, 69.261681, 0.0000, 0.0000, 0.0000);
    CreateObject(983, 2744.741455, -1134.702759, 69.261681, 0.0000, 0.0000, 22.5000);
    CreateObject(980, 2683.419678, -1096.622559, 71.078979, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2673.669434, -1110.690063, 71.079308, 0.0000, 0.0000, 90.0000);
    CreateObject(979, 2697.026367, -1133.855957, 69.418343, 0.0000, 0.0000, 0.0000);
    CreateObject(979, 2706.391602, -1133.845215, 69.418343, 0.0000, 0.0000, 0.0000);
    CreateObject(1597, 2721.985352, -1081.909058, 71.094444, 0.0000, 0.0000, 56.2500);
    CreateObject(1597, 2711.947266, -1079.129761, 71.096550, 0.0000, 0.0000, 90.0000);
    CreateObject(1597, 2700.525146, -1079.103027, 71.014763, 0.0000, 0.0000, 90.0000);
    CreateObject(1597, 2688.011475, -1078.866821, 70.954254, 0.0000, 0.0000, 90.0000);
    CreateObject(1597, 2677.536865, -1078.912598, 70.954254, 0.0000, 0.0000, 90.0000);
    CreateObject(1597, 2666.730713, -1078.884766, 71.096130, 0.0000, 0.0000, 90.0000);
    CreateObject(849, 2665.391357, -1107.248169, 68.712753, 0.0000, 0.0000, 0.0000);
    CreateObject(910, 2662.816406, -1112.371948, 69.066170, 0.0000, 0.0000, 101.2500);
    CreateObject(926, 2664.095947, -1106.980835, 68.681244, 0.0000, 0.0000, 0.0000);
    CreateObject(1219, 2664.417969, -1109.580688, 68.578400, 0.0000, 0.0000, 348.7500);
    CreateObject(1219, 2664.753662, -1110.081543, 69.199310, 0.0000, 0.0000, 303.7500);
    return 1;
    }



    public OnFilterScriptExit()
    {
    return 1;
    }



    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }
    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(!strcmp(cmdtext, "/oy", true))
    {
    SendClientMessage(playerid, 0xFFFFFFFF, "Funktioniert!");
    return 1;
    }
    return 0;
    }