Probleme mit Selfmade Mautscript und Foren GM

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
  • Hi, alle zusammen ich habe soeben mein erstes Filterscript fertig gekriegt. Es funktioniert auch, nur das Problem ist das die Funktionen des GM nicht gehen (z.B. /login) und die Daten alles User die On kommen werden ressettet! Kan mir einer Helfen?


    #define FILTERSCRIPT
    #include <a_samp>
    new gate1;new gate2;
    public OnFilterScriptInit(){//print("\n--------------------------------------");//print(" Maut LS-LV by AndreasMieke");//print("--------------------------------------\n");//---{AddStaticVehicleEx(564,1726.53234863,471.41577148,29.28118706,340.00000000,-1,-1,15); //RC TigerAddStaticVehicleEx(430,1630.56262207,572.03192139,0.00000000,92.00000000,-1,-1,15); //PredatorCreateObject(1323,1714.85986328,395.83709717,32.31619644,0.00000000,0.00000000,246.00000000); //object(ws_roadwarning_03) (1)CreateObject(1323,1685.58679199,328.90005493,31.51441956,0.00000000,0.00000000,245.99487305); //object(ws_roadwarning_03) (2)CreateObject(1323,1695.04479980,397.40875244,31.84191513,0.00000000,0.00000000,245.99487305); //object(ws_roadwarning_03) (3)CreateObject(1323,1672.46093750,329.22744751,31.52825546,0.00000000,0.00000000,245.99487305); //object(ws_roadwarning_03) (5)CreateObject(1323,1732.71337891,565.86914062,27.17860222,0.00000000,0.00000000,48.00000000); //object(ws_roadwarning_03) (7)CreateObject(1323,1751.92724609,561.90924072,26.98889542,0.00000000,0.00000000,79.99926758); //object(ws_roadwarning_03) (8)CreateObject(1323,1776.74877930,649.89221191,19.93625450,0.00000000,0.00000000,79.99694824); //object(ws_roadwarning_03) (9)CreateObject(1323,1761.26989746,670.54687500,19.19248581,0.00000000,0.00000000,79.99694824); //object(ws_roadwarning_03) (10)CreateObject(10832,1722.39660645,466.56399536,31.25511169,0.00000000,0.00000000,160.00000000); //object(gatehouse2_sfse) (1)CreateObject(10832,1711.47033691,455.76815796,31.58781433,0.00000000,0.00000000,340.00000000); //object(gatehouse2_sfse) (2)gate1 = CreateObject(2990,1702.22521973,454.26232910,33.75374603,0.00000000,0.00000000,160.00000000); //object(wongs_gate) (1)gate2 = CreateObject(2990,1731.74414062,468.26660156,33.23192596,0.00000000,0.00000000,339.99407959); //object(wongs_gate) (2)CreateObject(3578,1714.30163574,464.36822510,30.13277817,0.00000000,0.00000000,38.00000000); //object(dockbarr1_la) (15)CreateObject(3578,1720.01965332,458.55422974,30.28239059,0.00000000,0.00000000,35.99816895); //object(dockbarr1_la) (17)CreateObject(3578,1698.51416016,456.49755859,30.39088058,0.00000000,0.00000000,71.99816895); //object(dockbarr1_la) (18)CreateObject(3578,1699.73083496,466.29571533,30.31162643,0.00000000,0.00000000,93.99340820); //object(dockbarr1_la) (19)CreateObject(3578,1704.90686035,448.04937744,30.69293976,0.00000000,0.00000000,69.98803711); //object(dockbarr1_la) (20)CreateObject(3578,1693.45837402,448.08688354,30.57693863,0.00000000,0.00000000,45.98291016); //object(dockbarr1_la) (21)CreateObject(3578,1735.77478027,466.60629272,29.85779953,0.00000000,0.00000000,69.97778320); //object(dockbarr1_la) (22)CreateObject(3578,1734.22229004,457.05685425,30.14007187,0.00000000,0.00000000,91.97741699); //object(dockbarr1_la) (23)CreateObject(3578,1740.77819824,475.14666748,29.56614304,0.00000000,0.00000000,47.97204590); //object(dockbarr1_la) (24)CreateObject(3578,1728.93774414,473.62451172,29.97421646,0.00000000,0.00000000,69.97180176); //object(dockbarr1_la) (25)CreateObject(3578,1714.07934570,449.97137451,30.59106445,0.00000000,0.00000000,72.00000000); //object(dockbarr1_la) (1)CreateObject(3578,1710.79016113,440.62707520,30.72470856,0.00000000,0.00000000,69.99890137); //object(dockbarr1_la) (2)CreateObject(3578,1707.23266602,430.86560059,30.83481598,0.00000000,0.00000000,69.99389648); //object(dockbarr1_la) (3)CreateObject(3578,1703.67041016,421.08410645,30.93297958,0.00000000,0.00000000,69.99389648); //object(dockbarr1_la) (4)CreateObject(3578,1700.13525391,411.48886108,30.92255402,0.00000000,0.00000000,69.99389648); //object(dockbarr1_la) (5)CreateObject(3578,1720.04296875,472.41619873,30.01535797,0.00000000,0.00000000,70.00000000); //object(dockbarr1_la) (6)CreateObject(3578,1723.52819824,481.96908569,29.55004501,0.00000000,0.00000000,69.99938965); //object(dockbarr1_la) (7)CreateObject(3578,1727.01135254,491.80749512,29.40837097,0.00000000,0.00000000,249.99935913); //object(dockbarr1_la) (8)
    /*Objects converted: 30Vehicles converted: 2Vehicle models found: 2----------------------In the time this conversion took to finish the US national debt has risen by about $1,025.25!*/
    //---//return 1;}}
    public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp("/mautlvls", cmdtext, true, 10) == 0){ MoveObject(gate1, 1702.22521973,454.26232910, 22.75374603, 1); GivePlayerMoney(playerid, -100); SetTimer("Resetgate1",10000,0);return 1;}if (strcmp("/mautlslv", cmdtext, true, 10) == 0){ MoveObject(gate2, 1731.74414062,468.26660156, 22.23192596, 1); GivePlayerMoney(playerid, -100); SetTimer("Resetgate2",10000,0);return 1;}return 1;}
    forward Resetgate1();forward Resetgate2();
    public Resetgate1(){MoveObject(gate1, 1702.22521973,454.26232910, 33.75374603, 1);}
    public Resetgate2(){MoveObject(gate2, 1731.74414062,468.26660156, 33.23192596, 1);}
    //public OnFilterScriptExit()//{//return 1;//}

    Mfg Andreas


  • Zitat

    Ausserdem sind keine Forwards vorhanden.

    Ach ja? Was ist dann das hier:
    forward Resetgate1();forward Resetgate2();
    Das ist doch ein forward wenn ich mich nicht täusche ;)