[DG]Filterscript 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
  • Hi Leute ich habe ein Problem. Ich habe ein Deathmatch Filterscript. Eigabeaufforderung sagt es ist geladen aber ich geh in den server rein und ich kann /deathmatch eingeben und es passiert nix. Bitte um SCHNELLE Hilfe


    #include <a_samp>
    #include <a_npc>
    #include <core>
    #include <float>
    #include "../include/a_players.inc"


    #include "../include/gl_common.inc"


    #define Filterscript
    #define COLOR_RED 0xAA3333AA


    #if defined Filterscript


    //-----------------------------------------------


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    //----------------------------------------------


    public OnPlayerCommandText(playerid, cmdtext[])


    {


    if( strcmp( cmdtext, "/deathmatch", true) == 0)
    {
    SetPlayerPos(playerid,245.37010192871,1818.3930664063,6.5546875);
    GivePlayerWeapon(playerid,WEAPON_MP5,150);
    GivePlayerWeapon(playerid,WEAPON_M4,200);
    GivePlayerWeapon(playerid,WEAPON_GRENADE,2);
    SendClientMessage(playerid,0xAA3333AA,"Willkommen in der Deathmatch Zone.");
    return 1;
    }

    if( strcmp( cmdtext, "/war", true) == 0)
    {
    SetPlayerPos(playerid,-1341.4237060547,508.67025756836,11.359897613525,0,0,0);
    GivePlayerWeapon(playerid,WEAPON_DEAGLE,700);
    SendClientMessage(playerid,0xAA3333AA,"Willkommen in der War Zone.");
    return 1;
    }

    if( strcmp( cmdtext, "/exit", true) == 0)
    {
    SetPlayerPos(playerid,-2552.1787109375,1445.1993408203,6.7275428771973);
    SendClientMessage(playerid,0xAA3333AA,"Du bist wieder in Freiheit.");
    ResetPlayerWeapons(playerid);


    return 1;
    }
    //-------------------------------------------------
    {
    CreateObject(980,213.21867370605,1875.2908935547,13.170351028442,0,0,0); //object (airportgate) (1)
    CreateObject(980,268.18222045898,1882.3433837891,16.171449661255,90,0,0); //object (airportgate) (2)
    CreateObject(980,267.94653320313,1886.6618652344,16.150659561157,90,0,0); //object (airportgate) (3)
    CreateObject(974,238.40441894531,1857.5861816406,16.668365478516,0,0,93.294494628906); //object (tall_fence) (1)
    CreateObject(980,-1335.2244873047,487.44613647461,11.710891723633,0,0,180.63403320313); //object (airportgate) (1)
    CreateObject(980,-1421.8233642578,494.75900268555,3.25,0,0,89.324493408203); //object (airportgate) (2)
    CreateObject(980,-1324.5572509766,515.220703125,11.704235076904,0,0,0); //object (airportgate) (3)
    CreateObject(980,-1366.4265136719,514.3671875,12.460891723633,0,0,0); //object (airportgate) (4)
    CreateObject(980,-1419.8131103516,514.23883056641,12.789016723633,0,0,0); //object (airportgate) (5)
    CreateObject(980,-1409.2612304688,514.24676513672,12.789016723633,0,0,0); //object (airportgate) (6)
    CreateObject(980,-1345.6018066406,499.35507202148,17.921829223633,0,0,0); //object (airportgate) (7)
    }
    return 1;
    }
    //-----------------------
    //EOF
    #endif


  • //-------------------------------------------------
    {
    CreateObject(980,213.21867370605,1875.2908935547,13.170351028442,0,0,0); //object (airportgate) (1)
    CreateObject(980,268.18222045898,1882.3433837891,16.171449661255,90,0,0); //object (airportgate) (2)
    CreateObject(980,267.94653320313,1886.6618652344,16.150659561157,90,0,0); //object (airportgate) (3)
    CreateObject(974,238.40441894531,1857.5861816406,16.668365478516,0,0,93.294494628906); //object (tall_fence) (1)
    CreateObject(980,-1335.2244873047,487.44613647461,11.710891723633,0,0,180.63403320313); //object (airportgate) (1)
    CreateObject(980,-1421.8233642578,494.75900268555,3.25,0,0,89.324493408203); //object (airportgate) (2)
    CreateObject(980,-1324.5572509766,515.220703125,11.704235076904,0,0,0); //object (airportgate) (3)
    CreateObject(980,-1366.4265136719,514.3671875,12.460891723633,0,0,0); //object (airportgate) (4)
    CreateObject(980,-1419.8131103516,514.23883056641,12.789016723633,0,0,0); //object (airportgate) (5)
    CreateObject(980,-1409.2612304688,514.24676513672,12.789016723633,0,0,0); //object (airportgate) (6)
    CreateObject(980,-1345.6018066406,499.35507202148,17.921829223633,0,0,0); //object (airportgate) (7)
    }
    return 1;
    }


    Da fehlt der Public oO?
    Und setz das Return vom Public OnPlayerCommandText am Ende auf 0...

    Why do programmers always mix up Halloween and Christmas?
    Oct 31 == Dec 25

  • Jetzt hab ich 3 Errors


    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(39) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(39) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(39) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(54) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(54) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(54) : error 017: undefined symbol "OnFilterscriptInit"
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(67) : warning 209: function "OnPlayerCommandText" should return a value
    C:\Dokumente und Einstellungen\J.Hamilton\Desktop\SA-MP 0.3b\filterscripts\Deathmatch.pwn(68) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.