Beiträge von Sharpadox

    Du darfst auf keinen Fall hier das return weg machen


    forward CheckArea(playerid);
    public CheckArea(playerid)
    {
    if(IsPlayerInArea(playerid,1060.546875, -1400.390625, 1335.9375, -1289.0625))
    {
    TextDrawShowForPlayer(playerid,No_Dm);
    return 1; //DIESES HIER
    }
    return 1;
    }


    SOnst geht es nicht ;)

    Danke, das Compilen geht wieder, aber nun kommt beim Serverstart wieder das hier:
    Habe MySQL R5 plugin


    Fehler + nativechecker

    Code
    ----------Loaded log file: "server_log.txt".----------SA-MP Dedicated Server----------------------v0.3e-R2, (C)2005-2012 SA-MP Team[13:47:58] filterscripts = ""  (string)[13:47:58] [13:47:58] Server Plugins[13:47:58] --------------[13:47:58]  Loading plugin: nativechecker[13:47:58]   Loaded.[13:47:58]  Loading plugin: mysql[13:47:58]   > MySQL plugin R5 successfully loaded.[13:47:58]   Loaded.[13:47:58]  Loaded 2 plugins.[13:47:58] [13:47:58] Ban list[13:47:58] --------[13:47:58]  Loaded: samp.ban[13:47:58] [13:47:58] [13:47:58] Filterscripts[13:47:58] ---------------[13:47:58]   Loaded 0 filterscripts.[13:47:58]	Error: Function not registered: 'SSCANF_Init'[13:47:58]	Error: Function not registered: 'SSCANF_Join'[13:47:58]	Error: Function not registered: 'SSCANF_Leave'[13:47:58]	Error: Function not registered: 'mysql_debug'[13:47:58]	Error: Function not registered: 'mysql_reconnect'[13:47:58]	Error: Function not registered: 'sscanf'[13:47:58]	Error: Function not registered: 'mysql_connect'[13:47:58]	Error: Function not registered: 'mysql_ping'[13:47:58]	Error: Function not registered: 'mysql_real_escape_string'[13:47:58]	Error: Function not registered: 'mysql_query'[13:47:58]	Error: Function not registered: 'mysql_store_result'[13:47:58]	Error: Function not registered: 'mysql_num_rows'[13:47:58]	Error: Function not registered: 'mysql_free_result'[13:47:58]	Error: Function not registered: 'mysql_fetch_row_format'[13:47:58]	Error: Function not registered: 'mysql_fetch_int'[13:47:58] Script[gamemodes/DeathMatch.amx]: Run time error 19: "File or function is not found"[13:47:58] Number of vehicle models: 0

    Gibts dafür TuTorials ? Ich hab Probleme..


    //Edit : Wenn ich TextDrawCreate benutze und bei OnPlayerSpawn eintrage wird kein Text angezeigt!
    //Edit2: Auch wenn ich das Original aus dem Forum kopiere funktioniert des nicht!

    Hier::
    Habs getestet; und es funktioniert :whistling:


    #include <a_samp>


    new NDM_Zone;
    new Text:No_Dm;


    main() {}


    public OnGameModeInit()
    {
    //=====// TEXTDRAW //=====//
    No_Dm = TextDrawCreate(40.000000, 324.000000, "No-DM Zone");
    TextDrawBackgroundColor(No_Dm, 255);
    TextDrawFont(No_Dm, 1);
    TextDrawLetterSize(No_Dm, 0.490000, 1.300000);
    TextDrawColor(No_Dm, -16776961);
    TextDrawSetOutline(No_Dm, 0);
    TextDrawSetProportional(No_Dm, 1);
    TextDrawSetShadow(No_Dm, 1);
    TextDrawUseBox(No_Dm, 1);
    TextDrawBoxColor(No_Dm, 255);
    TextDrawTextSize(No_Dm, 140.000000, 0.000000);


    //=====// OTHERS //=====//
    SetTimer("CheckArea",500,true);
    NDM_Zone = GangZoneCreate(1060.546875, -1400.390625, 1335.9375, -1289.0625);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    GangZoneShowForAll(NDM_Zone, 0xFF0000A6);
    return 1;
    }


    IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
    {
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
    return 1;
    }
    return 0;
    }


    forward CheckArea(playerid);
    public CheckArea(playerid)
    {
    if(IsPlayerInArea(playerid,1060.546875, -1400.390625, 1335.9375, -1289.0625))
    {
    TextDrawShowForPlayer(playerid,No_Dm);
    return 1;
    }
    return 1;
    }

    /**
    * MySQL plugin R7
    * Copyright (c) 2008-2011, BlueG
    */


    #if defined mysql_included
    #endinput
    #endif
    #define mysql_included


    /**
    * Common error codes
    *
    * Client: http://dev.mysql.com/doc/refman/5.0/en/error-messages-client.html
    * Server: http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html
    *
    */

    Hey,


    ich habe meine a_mysql überschrieben mit dem (eigentlich) gleichen Include (Pastebin).
    Und jetzt bekomme ich immer folgende Errors, beim Compilen


    Errors:

    Code
    C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(1355) : error 017: undefined symbol "mysql_query"C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(1368) : error 017: undefined symbol "mysql_query"C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(1395) : error 017: undefined symbol "mysql_query"C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(1461) : error 017: undefined symbol "mysql_query"C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(1463) : error 017: undefined symbol "mysql_fetch_int"C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(1489) : error 017: undefined symbol "mysql_query"Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase6 Errors.


    Obwohl z.B. mysql_query soweit ich verstanden haben definiert wurde.


    Definition: mysql_query

    Spoiler anzeigen

    #define mysql_query(%1,%2,%3,%4) \
    mysql_function_query(%4,%1,false,"OnQueryFinish","siii",%1,%2,%3,%4)


    new h, m, s;
    gettime(h,m,s);
    if(m == 60 || m == 0)
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(!IsPlayerConnected(i)) continue;
    if(GetPVarInt(i,"loggedin")==0) continue;
    SetPVarInt(i,"Paytime",GetPVarInt(i,"Paytime")+1);
    if(GetPVarInt(i,"Paytime")==20) //Alle 20 Minuten Payday
    {
    SetPVarInt(i,"Paytime",0);
    SendClientMessage(i,GRÜN,"....:Payday:....");
    SendClientMessage(i,GRÜN,"Paycheck: 1000$");
    SendClientMessage(i,GRÜN,"Lohn: 0$");
    SendClientMessage(i,GRÜN,"----------------");
    SendClientMessage(i,GRÜN,"Respektpunkte: 0");
    SendClientMessage(i,GRÜN,"----------------");
    GivePlayerMoney(i,1000);
    }

    }
    }


    :cursing:

    Hey,


    mein Server zeigt ganz plötzlich diesen Fehler an beim Starten :cursing: