Beiträge von NixMuss

    Hallo,


    wenn ich PawnStar starte bekomme ich dieser Error Meldung.


    [12:56] Unhandled exception:


    bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
    bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
    bei System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
    bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
    bei System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
    bei System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    bei System.Activator.CreateInstance(Type type, Object[] args)
    bei System.Xaml.Schema.SafeReflectionInvoker.CreateInstanceCritical(Type type, Object[] arguments)
    bei System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
    bei MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
    bei MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.CreateInstance(XamlType xamlType, Object[] args)
    bei System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)
    bei System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
    bei System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
    bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
    bei System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
    bei System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
    bei System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
    bei System.Windows.Application.DoStartup()
    bei System.Windows.Application.<.ctor>b__1(Object unused)
    bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    Hallo, ich hab da ein Problem undzwar, wenn ich /frc eingebe werden keine Autos zurück gespawnt wenn ich in einem Car bin.



    if(PlayerInfo[playerid][pLeader] == 1)
    {
    for(new pv = 0; pv < sizeof(PolizeiVehs); pv++)
    {
    if(!IsPlayerInAnyVehicle(PolizeiVehs[pv]))
    {
    SetVehicleToRespawn(PolizeiVehs[pv]);
    }
    }
    for(new fc;fc<sizeof(FactionCars);fc++)
    {
    if(FactionCars[fc][fVehid] >= 400 && FactionCars[fc][fVehid] <= 611)
    {
    if(FactionCars[fc][fFaction][0] == GetPlayerFaction(playerid))
    {
    if(!IsPlayerInAnyVehicle(PolizeiVehs[fc]))
    {
    DestroyAndCreateFactionCar(fc);
    }
    }
    }
    }
    SendClientMessage(playerid,FACTION_COL_YELLOW,"Du hast deine Fraktionsfahrzeuge erfolgreich respawnt.");
    return 1;
    }

    Hallo



    Mein Bot Connected nicht mal. Ich weiß nicht warum.


    //Globale Variable
    new car_train_ls;


    //GameModeInit
    ConnectNPC("Lokführer","train_ls");
    car_train_ls = AddStaticVehicleEx(537, 1000.0,1000.0, 1000.0, 0.0, 10, 1, -1);


    //OnPlayerSpawn
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Lokführer", true))
    {
    PutPlayerInVehicle(playerid, car_train_ls, 0);//car_BulletLS = das Fahrzeug was wir oben erstellt haben, 0 = der Fahrersitz
    }
    }


    //OnPlayerConnect
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Lokführer", true))
    {
    gPlayerLogged[playerid]=1;//Der Bot ist gleich eingeloggt (Anpassen!)
    }
    }


    //OnPlayerRequestClass
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Lokführer", true))
    {
    gPlayerLogged[playerid]=1;//Der Bot ist gleich eingeloggt (Anpassen!)
    }
    }


    zu


    if(sInfo[playerid][eingeloggt]==0)return 1;
    //Speichern level,money
    new query[256];
    format(query,sizeof(query),"UPDATE user SET level='%i',money='%i',alevel='%i',fraktion='%i,rang='%i',spawnchange='%i' WHERE id='%i'",sInfo[playerid][level],
    GetPlayerMoney(playerid),sInfo[playerid][fraktion],sInfo[playerid][rang],sInfo[playerid][spawnchange],sInfo[playerid][db_id]);
    mysql_function_query(dbhandle,query,false,"","");
    return 1;

    So hab jetzt mit nativechecker gemacht.


    Jetzt kommt das raus


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3z, (C)2005-2014 SA-MP Team


    [22:11:12] filterscripts = "" (string)
    [22:11:12]
    [22:11:12] Server Plugins
    [22:11:12] --------------
    [22:11:12] Loading plugin: mysql
    [22:11:12]


    > MySQL plugin R6-2 successfully loaded.


    [22:11:12] Loaded.
    [22:11:12] Loading plugin: nativechecker
    [22:11:12] Loaded.
    [22:11:12] Loaded 2 plugins.


    [22:11:12]
    [22:11:12] Filterscripts
    [22:11:12] ---------------
    [22:11:12] Loaded 0 filterscripts.


    [22:11:12] Error: Function not registered: 'cache_get_data'
    [22:11:12] Error: Function not registered: 'mysql_function_query'
    [22:11:12] Error: Function not registered: 'cache_get_field_content'
    [22:11:12] Script[gamemodes/Mysql.amx]: Run time error 19: "File or function is not found"
    [22:11:12] Number of vehicle models: 0

    Bekomme in meine Console "File or function is not found", hab alle Plugins aktualisiert, die Verbindung zur MySQL Datenbank ist ebenfalls richtig eingestellt.





    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3z, (C)2005-2014 SA-MP Team


    [21:56:42] filterscripts = "" (string)
    [21:56:42]
    [21:56:42] Server Plugins
    [21:56:42] --------------
    [21:56:42] Loading plugin: mysql
    [21:56:42]


    > MySQL plugin R6-2 successfully loaded.


    [21:56:42] Loaded.
    [21:56:42] Loaded 1 plugins.


    [21:56:42]
    [21:56:42] Filterscripts
    [21:56:42] ---------------
    [21:56:42] Loaded 0 filterscripts.


    [21:56:42] Script[gamemodes/Mysql.amx]: Run time error 19: "File or function is not found"
    [21:56:42] Number of vehicle models: 0

    public OnGameModeInit()
    {
    EnableStuntBonusForAll(false);
    ShowPlayerMarkers(1);
    //DisableInteriorEnterExits();
    SetGameModeText("German Roleplay");
    //MySQL Verbindung
    dbhandle = mysql_connect(db_host,db_user,db_db,db_pass);
    return 1;
    }


    public OnGameModeExit()
    {
    mysql_close(dbhandle);
    return 1;
    }