Beiträge von Mr.Stein

    xD Danke bloß habe nun noch ein problem


    Ich hab Gamemode compiliert kein Problem ;D
    Ich Starte den Server dann kommt das


    "[17:24:57] Script[gamemodes/selfmadeMySQL.amx]: Run time error 19: "File or function is not found"
    O.o?
    Komplette Log Datei:


    SA-MP Dedicated Server
    ----------------------
    v0.3d, (C)2005-2011 SA-MP Team


    [17:24:57] filterscripts = "" (string)
    [17:24:57]
    [17:24:57] Server Plugins
    [17:24:57] --------------
    [17:24:57] Loading plugin: mysql
    [17:24:57]


    > MySQL plugin R5 successfully loaded.


    [17:24:57] Loaded.
    [17:24:57] Loaded 1 plugins.


    [17:24:57]
    [17:24:57] Filterscripts
    [17:24:57] ---------------
    [17:24:57] Loaded 0 filterscripts.


    [17:24:57] Script[gamemodes/selfmadeMySQL.amx]: Run time error 19: "File or function is not found"
    [17:24:57] Number of vehicle models: 0


    MFG

    /edit:


    Hab nun folgende Errors;

    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : error 029: invalid expression, assumed zero
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : error 001: expected token: ";", but found ")"
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : error 029: invalid expression, assumed zero
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    Zeilen:

    stock LoadPlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))//Wir fragen ab ob der angegebene Spieler auch Online ist, und kein NPC ist (nur zur sicherhheit)
    {


    SetPVarInt(playerid,"Level", = mysql_GetInt("accounts", "Level", "Name", SpielerName(playerid))); //Wir holen uns den wert der unter "Level" eingetragen ist und Speichern ihn in unserer Variable. //Zeile 3103
    SetPVarInt(playerid,"Geld", = mysql_GetInt("accounts", "Geld", "Name", SpielerName(playerid))); //Wir holen uns den wert der unter "Geld" eingetragen ist und Speichern ihn in unserer Variable.
    SetPVarInt(playerid,"Adminleve", = mysql_GetInt("accounts", "Adminlevel", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"Fraktion", = mysql_GetInt("accounts", "Fraktion", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"Leader", = mysql_GetInt("accounts", "Leader", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"Mitglied", = mysql_GetInt("accounts", "Mitglied", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"FRang", = mysql_GetInt("accounts", "FRang", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"Premium", = mysql_GetInt("accounts", "Premium", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"FLicense", = mysql_GetInt("accounts", "FLicense", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"PremiumPunkte", = mysql_GetInt("accounts", "PremiumPunkte", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"Skin", = mysql_GetInt("accounts", "Skin", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"firstskin", = mysql_GetInt("accounts", "firstskin", "Name", SpielerName(playerid)));
    SetPVarInt(playerid,"Banned", = mysql_GetInt("accounts", "Banned", "Name", SpielerName(playerid)));
    if(GetPVarInt(playerid,"Banned")==1)
    {
    SCM(playerid,rot,"Du bist vom Server gebannt!");
    Kick(playerid);
    }
    SetPVarInt(playerid,"loggedin",1);
    }
    return 1;
    }



    MFG Stein

    Hey Breadfisher,


    Ich schreibe gerade mein Selfmade auf MySQL um das klappt auch ganz gut mit dem Tutorial von Maddin Link!


    Bloß ich bekomme beii dem Stock "LoadPlayer" errors und ich bekomme sie nicht weg
    Kann mir vielleicht helfen?


    Stock LoadPlayer

    stock LoadPlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))//Wir fragen ab ob der angegebene Spieler auch Online ist, und kein NPC ist (nur zur sicherhheit)
    {


    SetPVarInt(playerid,"Level") = mysql_GetInt("accounts", "Level", "Name", SpielerName(playerid)); //Wir holen uns den wert der unter "Level" eingetragen ist und Speichern ihn in unserer Variable.
    SetPVarInt(playerid,"Geld") = mysql_GetInt("accounts", "Geld", "Name", SpielerName(playerid)); //Wir holen uns den wert der unter "Geld" eingetragen ist und Speichern ihn in unserer Variable.
    SetPVarInt(playerid,"Adminleve") = mysql_GetInt("accounts", "Adminlevel", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"Fraktion") = mysql_GetInt("accounts", "Fraktion", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"Leader") = mysql_GetInt("accounts", "Leader", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"Mitglied") = mysql_GetInt("accounts", "Mitglied", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"FRang") = mysql_GetInt("accounts", "FRang", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"Premium") = mysql_GetInt("accounts", "Premium", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"FLicense") = mysql_GetInt("accounts", "FLicense", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"PremiumPunkte") = mysql_GetInt("accounts", "PremiumPunkte", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"Skin") = mysql_GetInt("accounts", "Skin", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"firstskin") = mysql_GetInt("accounts", "firstskin", "Name", SpielerName(playerid));
    SetPVarInt(playerid,"Banned") = mysql_GetInt("accounts", "Banned", "Name", SpielerName(playerid));
    if(GetPVarInt(playerid,"Banned")==1)
    {
    SCM(playerid,rot,"Du bist vom Server gebannt!");
    Kick(playerid);
    }
    SetPVarInt(playerid,"loggedin",1);
    }
    return 1;
    }


    Errors

    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3104) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3104) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3105) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3105) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3106) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3106) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3107) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3107) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3108) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3108) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3109) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3109) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3110) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3110) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3111) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3111) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3112) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3112) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3113) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3113) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3114) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3114) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3115) : warning 202: number of arguments does not match definition
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3115) : error 022: must be lvalue (non-constant)
    C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(4083) : warning 204: symbol is assigned a value that is never used: "string"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    13 Errors.



    MFG Stein
    P.S Kann es an den PVar´s liegen? im Tutorial ist das als Enum erklärt

    Anstatt garnichts


    Sonst änderst du ja nur die Variablen :)
    So zeigst du das Wanted Level an ^^
    Fügste einfach in den "Wanted Verliere" timer hinein :)


    MFG
    P.S Frohe Weihnachten in 4Tagen xD
    /edit:


    Also fertig dann so

    public WantedTimer()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && WantedLevel[i] > 0)
    {
    WantedLevel[i] -= 1;
    WantedPoints[i] -= 1;
    SetPlayerWantedLevel(i,-1); // Kann das nicht im Forum einrücken O.o
    new wstring[128];
    format(wstring,sizeof(wstring),"Dein Wantedlevel ist gesunken! Momentanes Wantedlevel: %d",WantedLevel[i]);
    SendClientMessage(i,0xFFCC00FF,wstring);
    }
    }
    }

    sowas hatte ich auchmal da hab die zeile gelöscht erros warrn nicht weg komplett das gleiche hab ich meinem kollegem geschikt er hats eingefügt und es ging
    Vilt ist das ein Bug von pawno


    MFG
    p.s vom Handy