Beiträge von Dr. Frauenarzt


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


    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team


    [21:51:44] mapname = "San Andreas" (string)
    [21:51:44]
    [21:51:44] Server Plugins
    [21:51:44] --------------
    [21:51:44] Loading plugin: crashdetect.so
    [21:51:44] CrashDetect v4.18.1 is OK.
    [21:51:44] Loaded.
    [21:51:44] Loading plugin: mysql.so
    [21:51:44] Failed (log-core.so: cannot open shared object file: No such file or directory)
    [21:51:44] Loading plugin: streamer.so
    [21:51:44]


    *** Streamer Plugin v2.8.2 by Incognito loaded ***


    [21:51:44] Loaded.
    [21:51:44] Loading plugin: sscanf.so
    [21:51:44]


    [21:51:44] ===============================


    [21:51:44] sscanf plugin loaded.


    [21:51:44] Version: 2.8.2


    [21:51:44] (c) 2012 Alex "Y_Less" Cole


    [21:51:44] ===============================


    [21:51:44] Loaded.
    [21:51:44] Loaded 3 plugins.


    [21:51:44]
    [21:51:44] Filterscripts
    [21:51:44] ---------------
    [21:51:44] Loaded 0 filterscripts.


    [21:51:44] [debug] Run time error 19: "File or function is not found"
    [21:51:44] [debug] mysql_connect
    [21:51:44] [debug] mysql_errno
    [21:51:44] [debug] mysql_format
    [21:51:44] [debug] mysql_pquery
    [21:51:44] [debug] cache_get_row_count
    [21:51:44] [debug] cache_get_value_name
    [21:51:44] [debug] mysql_escape_string
    [21:51:44] [debug] Run time error 19: "File or function is not found"
    [21:51:44] [debug] mysql_connect
    [21:51:44] [debug] mysql_errno
    [21:51:44] [debug] mysql_format
    [21:51:44] [debug] mysql_pquery
    [21:51:44] [debug] cache_get_row_count
    [21:51:44] [debug] cache_get_value_name
    [21:51:44] [debug] mysql_escape_string
    [21:51:44] Script[gamemodes/GeTmyselfmade.amx]: Run time error 19: "File or function is not found"
    [21:51:44] Number of vehicle models: 0



    Habe das Script auf mysql R41 geupdatet und funktioniert nicht ?


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84000) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84000) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84140) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84140) : warning 213: tag mismatch




    Bleibnt gleich trotz "False"



    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84000) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84140) : warning 213: tag mismatch




    if(SconnectionHandle != handle || mysql_errno() == 0)//84000



    if(SconnectionHandle != handle || mysql_errno() == 0)//84140



    die letzen errors dann hab ichs geschafft was daran falsch :D?


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84141) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84141) : warning 213: tag mismatch


    if(SconnectionHandle != handle || mysql_errno(_:handle) != 0) //84141





    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84001) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84001) : warning 213: tag mismatch



    if(SconnectionHandle != handle || /*mysql_ping() == 0*/mysql_errno(_:handle) != 0)//84001





    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(83989) : error 025: function heading differs from prototype

    public OnQueryError(errorid,error[],callback[],query[],connectionHandle) //83989
    {
    new string[900];
    format(handle,string,sizeof(string),"errorid=%i,error=%s,query=%s",errorid,error,query);
    Log("mysql",string);
    if(errorid == 1054) CreateTables();
    return 1;
    }



    hab da zwar nie was verändert bei OnQueryError aber ist ok xD


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(83989) : error 025: function heading differs from prototype
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84001) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84001) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(84141) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87865) : error 035: argument type mismatch (argument 3)
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87873) : error 035: argument type mismatch (argument 3)
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87876) : error 035: argument type mismatch (argument 3)
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87878) : error 037: invalid string (possibly non-terminated string)
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87878) : warning 215: expression has no effect
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87878) : error 001: expected token: ";", but found "-identifier-"
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87878) : error 017: undefined symbol "_bans"
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(87878) : fatal error 107: too many error messages on one line





    public OnQueryError(errorid,error[],callback[],query[],connectionHandle) //83989
    {
    new string[900];
    format(string,sizeof(string),"errorid=%i,error=%s,query=%s",errorid,error,query);
    Log("mysql",string);
    if(errorid == 1054) CreateTables();
    return 1;
    }


    public OnQueryFinish2(index[],index2[],sqlresultid,extraid,extraid2,SconnectionHandle)
    {
    new query[1000],row_count,rows;
    if(SconnectionHandle != handle || /*mysql_ping() == 0*/mysql_errno(_:handle) != 0) //84001
    {
    getdate(tag,monat,jahr);
    gettime(stunde,minute,sekunde);
    ForEachPlayer(i)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i) && GetPVarInt(i,"Eingeloggt") == 1)
    {
    SaveAccount(i);
    }
    }
    Log("Restartssqllog","Admin: System hat den Server gerestartet(Dead MySql Connection)!");
    OnGameModeSave();
    GameModeExit();
    return 1;
    }



    public OnQueryFinish(index[],sqlresultid,extraid,SconnectionHandle)
    {
    new query[4000],result[64],row_count,rows;
    if(SconnectionHandle != handle || /*mysql_ping() == 0*/mysql_errno(handle) != 0) //84141
    {
    getdate(tag,monat,jahr);
    gettime(stunde,minute,sekunde);
    ForEachPlayer(i)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i) && GetPVarInt(i,"Eingeloggt") == 1)
    {
    SaveAccount(i);
    }
    }
    Log("Restartssqllog","Admin: System hat den Server gerestartet(Dead MySql Connection)!");
    OnGameModeSave();
    GameModeExit();
    return 1;
    }



    mysql_pquery(handle,query,_:handle); //87876


    mysql_pquery(handle,"CREATE TABLE IF NOT EXISTS `"#DATENBANKTAG"_bans` (`IP` varchar(16) NOT NULL,`Grund` varchar(128) NOT NULL,`Name` varchar(24) NOT NULL,`Admin` varchar(24) NOT NULL,`Zeit` int(128) NOT NULL,`Uhrzeit` time NOT NULL,`Datum` date NOT NULL,PRIMARY KEY (`IP`)),_:handle); //87878

    mysql_free_result(); //21499


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(21499) : error 017: undefined symbol "mysql_free_result"


    cache_get_data(rows,fields); //83034


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(83034) : error 017: undefined symbol "cache_get_data"


    cache_get_field_content(0,"Passwort",result); //83052


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(83052) : error 017: undefined symbol "cache_get_field_content"


    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(14701) : error 035: argument type mismatch (argument 1)
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(14701) : error 035: argument type mismatch (argument 2)
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(14702) : warning 213: tag mismatch



    mysql_format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_gangwar WHERE GangZoneID='%d'",gw); //14701
    mysql_pquery(handle,query,"OnQueryFinish","siii",query,_SQL_GANGZONE_INSERT,gw,handle); //14702


    ich versteh das nicht?


    handle = mysql_connect(SQL_HOST,SQL_USER,SQL_DATA,SQL_PASS,3306); //4914
    if(/*mysql_ping() == 1*/mysql_errno(handle) == 0) //4915


    Code
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(4914) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(4914) : warning 213: tag mismatch
    C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\Fantastic Reallife\gamemodes\GeTmyselfmade.pwn(4915) : warning 213: tag mismatch

    So sieht das jetzt aus :)

    Ja.
    mysql_pquery(handle,"SELECT * FROM "#DATENBANKTAG"_gangwar","OnQueryFinish","siii","SELECT * FROM "#DATENBANKTAG"_gangwar",_SQL_GANGZONE_LOAD,0,handle);


    Wobei das nur funktioniert, wenn du OnQueryFinish in der Zwischenzeit angepasst hast.
    Im Code oben hat dein OnQueryFinish nur einen Parameter ("i") und hier dann vier ("siii"). Eins der beiden wird nicht funktionieren.

    SO sieht das aus warum auch immer ^^

    Code
    mysql_format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_gangwar WHERE GangZoneID='%d'",gw);
    mysql_pquery(handle,query,"OnQueryFinish","i",_SQL_GANGZONE_INSERT);

    also so oder?


    //E:


    mysql_function_query(MySqlConnection,"SELECT * FROM "#DATENBANKTAG"_gangwar",true,"OnQueryFinish","siii","SELECT * FROM "#DATENBANKTAG"_gangwar",_SQL_GANGZONE_LOAD,0,MySqlConnection);


    In was muss das geändert werden??

    Code
    format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_gangwar WHERE GangZoneID='%d'",gw); //MYSQL R31
    		mysql_function_query(MySqlConnection,query,true,"OnQueryFinish","siii",query,_SQL_GANGZONE_INSERT,gw,MySqlConnection); //MMYSQL R31
    
    
    	
    mysql_pquery(handle,query,"OnQueryFinish","i",_SQL_GANGZONE_INSERT); //MYSQL R41

    Hey, ich wollte fragen ob das so stimmen kann wen ich das umschreiben möchte auf R41