Beiträge von Fernando_Jizuya

    Guten Tag,
    ich habe folgende Errors.


    Error Zeilen:
    mysql_fetch_field("wins",val);
    mysql_fetch_field("champ",Titel[TitelName]);
    mysql_fetch_field("loses",val);


    • error 035: argument type mismatch (argument 1)


    public LoadBoxer()
    {
    new query[128],val[128];
    format(query, sizeof(query), "SELECT * FROM `boxstats`");
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("wins",val);
    Titel[TitelWins] = strval(val);

    mysql_fetch_field("champ",Titel[TitelName]);


    mysql_fetch_field("loses",val);
    Titel[TitelLoses] = strval(val);
    }
    mysql_free_result();
    print("Boxstatistiken geladen!");
    return 1;
    }


    Error Zeilen:


    mysql_fetch_field("jackpot",val);
    mysql_fetch_field("tax",val);
    mysql_fetch_field("taxvalue",val);
    mysql_fetch_field("security",val);
    mysql_fetch_field("verweigerarg",val);
    mysql_fetch_field("drugammo",val);
    mysql_fetch_field("drugsave",val);
    mysql_fetch_field("pizzabake",val);


    • error 035: argument type mismatch (argument 1)


    public LoadStuff()
    {
    new query[128],val[128];
    format(query, sizeof(query), "SELECT * FROM `stuff`");
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("jackpot",val);
    Jackpot = strval(val);


    mysql_fetch_field("tax",val);
    Tax = strval(val);

    mysql_fetch_field("taxvalue",val);
    TaxValue = strval(val);

    mysql_fetch_field("security",val);
    Security = strval(val);

    mysql_fetch_field("verweigerarg",val);
    verweigerarg = strval(val);

    mysql_fetch_field("drugammo",val);
    drugsys[DrugAmmount] = strval(val);

    mysql_fetch_field("drugsave",val);
    drugsys[DrugsSaved] = strval(val);

    mysql_fetch_field("pizzabake",val);
    pizzasys[PizzaGebacken] = strval(val);
    }
    mysql_free_result();
    print("Servereinstellungen geladen!");
    return 1;
    }


    Error Zeilen:


    mysql_fetch_field("hcreated",val);
    mysql_fetch_field("hentrancex",val);
    mysql_fetch_field("hentrancey",val);
    mysql_fetch_field("hentrancez",val);
    mysql_fetch_field("hexitx",val);
    mysql_fetch_field("hexity",val);
    mysql_fetch_field("hexitz",val);
    mysql_fetch_field("hhealthx",val);
    mysql_fetch_field("hhealthy",val);
    mysql_fetch_field("hhealthz",val);
    mysql_fetch_field("harmourx",val);
    mysql_fetch_field("harmoury",val);
    mysql_fetch_field("harmourz",val);
    mysql_fetch_field("howner",HouseInfo[idx][hOwner]);
    mysql_fetch_field("hdiscription",HouseInfo[idx][hDiscription]);


    • error 035: argument type mismatch (argument 1)


    public LoadProperty()
    {
    new val[128],query[256];
    for(new idx=0; idx<sizeof(HouseInfo); idx++)
    {
    format(query, sizeof(query), "SELECT * FROM `houses` WHERE `houseid`='%i'", idx);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("hcreated",val);
    HouseInfo[idx][hCreated] = strval(val);


    mysql_fetch_field("hentrancex",val);
    HouseInfo[idx][hEntrancex] = floatstr(val);


    mysql_fetch_field("hentrancey",val);
    HouseInfo[idx][hEntrancey] = floatstr(val);


    mysql_fetch_field("hentrancez",val);
    HouseInfo[idx][hEntrancez] = floatstr(val);


    mysql_fetch_field("hexitx",val);
    HouseInfo[idx][hExitx] = floatstr(val);


    mysql_fetch_field("hexity",val);
    HouseInfo[idx][hExity] = floatstr(val);


    mysql_fetch_field("hexitz",val);
    HouseInfo[idx][hExitz] = floatstr(val);


    mysql_fetch_field("hhealthx",val);
    HouseInfo[idx][hHealthx] = strval(val);


    mysql_fetch_field("hhealthy",val);
    HouseInfo[idx][hHealthy] = strval(val);


    mysql_fetch_field("hhealthz",val);
    HouseInfo[idx][hHealthz] = strval(val);


    mysql_fetch_field("harmourx",val);
    HouseInfo[idx][hArmourx] = strval(val);


    mysql_fetch_field("harmoury",val);
    HouseInfo[idx][hArmoury] = strval(val);


    mysql_fetch_field("harmourz",val);
    HouseInfo[idx][hArmourz] = strval(val);


    mysql_fetch_field("howner",HouseInfo[idx][hOwner]);


    mysql_fetch_field("hdiscription",HouseInfo[idx][hDiscription]);


    mysql_fetch_field("hvalue",val);
    HouseInfo[idx][hValue] = strval(val);


    mysql_fetch_field("hhel",val);
    HouseInfo[idx][hHel] = strval(val);


    mysql_fetch_field("harm",val);
    HouseInfo[idx][hArm] = strval(val);


    mysql_fetch_field("hint",val);
    HouseInfo[idx][hInt] = strval(val);


    mysql_fetch_field("hlock",val);
    HouseInfo[idx][hLock] = strval(val);


    mysql_fetch_field("howned",val);
    HouseInfo[idx][hOwned] = strval(val);


    mysql_fetch_field("hrooms",val);
    HouseInfo[idx][hRooms] = strval(val);


    mysql_fetch_field("hrent",val);
    HouseInfo[idx][hRent] = strval(val);


    mysql_fetch_field("hrentabil",val);
    HouseInfo[idx][hRentabil] = strval(val);


    mysql_fetch_field("hdate",val);
    HouseInfo[idx][hDate] = strval(val);


    mysql_fetch_field("hlevel",val);
    HouseInfo[idx][hLevel] = strval(val);


    mysql_fetch_field("hmuell",val);
    HouseInfo[idx][hMuell] = strval(val);
    }
    mysql_free_result();
    }
    print("Häuser geladen!");
    return 1;
    }

    @Exod, hier:


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    //BEFEHLE
    dcmd(heal,4,cmdtext);
    dcmd(kick,4,cmdtext);
    dcmd(makeadmin, 9, cmdtext);
    dcmd(makeleader, 10, cmdtext);
    return 1;
    }
    //DCMD BEFEHLE
    //Makeleader Befehl
    dcmd_makeleader(playerid,params[])
    {
    new pid, frakid;
    if(sscanf(params,"ud",pid,frakid))
    {
    return SendClientMessage(playerid,GELB,"Verwendung : /makeleader [ID] [Fraktions ID]");


    }
    if(frakid > 17)
    {
    return SendClientMessage(playerid,ROT,"Es gibt nicht mehr als 17 Fraktionen");
    }
    if(IstSpielerAdmin(playerid, 5))
    {
    if(pid == INVALID_PLAYER_ID)
    {
    return SendClientMessage(playerid,ROT,"Ungültiger Spieler!");
    }
    if(IstSpielerInFraktion(pid,frakid) == frakid)
    {
    return SendClientMessage(playerid,ROT,"Der angegebene Spieler ist schon in der Fraktion!");
    }
    else
    {
    sSpieler[pid][Fraktion] = frakid;
    SendClientMessage(pid,BLUE,"Du bist nun in einer Fraktion!");
    SendClientMessage(pid,ORANGE,"Du hast den Spieler zu einer Fraktion eingeladen!");
    }
    }
    else
    {
    return SendClientMessage(playerid,ROT,"Du bist kein Administrator!");
    }
    return 1;
    }


    //Makeadmin Befehl
    dcmd_makeadmin(playerid, params[])
    {
    new pid,level;
    if(sscanf(params,"ud", pid, level))
    {
    return SendClientMessage(playerid, GELB,"Verwendung : /makeadmin [ID] [Level]");
    }
    if(IstSpielerAdmin(playerid, 5))
    {
    if(pid == INVALID_PLAYER_ID)
    {
    return SendClientMessage(playerid,ROT,"Ungültiger Spieler!");
    }
    if(IstSpielerAdmin(pid,level) == level)
    {
    return SendClientMessage(playerid, LILA,"Der Spieler hat schon das angegebene Adminlevel!");
    }
    else
    {
    sSpieler[pid][Adminlevel] = level;
    SendClientMessage(pid, ORANGE, "Du bist nun ein Administrator!");
    SendClientMessage(playerid,ROSA,"Du hast den angegeben Spieler zum Administrator gemacht!");
    }
    }
    else
    {
    return SendClientMessage(playerid,ROT,"Du bist kein Administrator!");
    }
    return 1;
    }


    //BEFEHL ZUM HEILEN


    dcmd_heal(playerid,params[])
    {
    new i;
    if(strlen(params))
    {
    i = strval(params);
    if(IsPlayerConnected(i))
    {
    SetPlayerHealth(i,100.0);
    SendClientMessage(i,ROT,"Du wurdest geheilt");
    SendClientMessage(playerid,GREEN,"Du hast den Spieler erfolgreich geheilt");
    }
    else
    {
    SendClientMessage(playerid,ROT,"Der spieler ist nicht Online");
    }
    }
    return 1;
    }


    //BEFEHL ZUM KICKEN
    dcmd_kick(playerid,params[])
    {
    new pid, str[64];
    if(sscanf(params, "uS(Kein Grund) [128]", pid, str))
    return SendClientMessage(playerid,RED,"Befehl:/kick [id] [Grund]");
    if(pid ==playerid) return SendClientMessage(playerid,ORANGE,"Du kannst dich nicht Selber kicken");
    if(!IsPlayerConnected(pid)) return SendClientMessage(playerid,ORANGE,"Der spieler ist nicht Online");
    if(IsPlayerAdmin(playerid))
    {
    new Spieler[MAX_PLAYER_NAME], str2[128];
    GetPlayerName(pid,Spieler,sizeof(Spieler));
    format(str2,sizeof(str2),"%s wurde vom Server gekickt! Grund :%S",Spieler,str);
    SendClientMessageToAll(ROT,str2);
    Kick(pid);
    }
    else return SendClientMessage(playerid,RED,"Du bist kein Admin");
    return 1;
    }
    if(strcmp(cmdtext,"/stats,true)==0)
    {
    //1 Reihe
    new fraktname[64];
    switch(GetsSpieler(playerid,"Fraktion"))
    {
    case 0;{fraktname="Keine"}
    }
    format(string,sizeof(string),"[Name: %s][level: %i][Adminlevel: %i][Fraktion: %s]",SpielerName),GetPlayerScore(playerid),GetsSpieler(playerid,"Adminlevel"),fraktname);
    SendClientMessage(playerid,BLAU,string);
    //2 Reihe
    return 1;
    }

    Tag,
    hab noch nen Problem und zwar wenn ich bei der Datenbank (Navicat) ein Passwort reinhaue öffnet die sich nicht..., ohne Passwort öffnet sich die Datenbank.
    Das ist seit dem ich XAMPP geupdated habe.


    lG

    if(GetPVarInt(playerid,"str") == 1)
    {
    SetPlayerCheckpoint(playerid, 1691.3373,-1637.9550,13.3828, 3.0);
    SetPVarInt(playerid,"str",2);
    }
    if(GetPVarInt(playerid,"str") == 2)
    {
    SetPlayerCheckpoint(playerid, 1661.6512,-1524.3806,13.3828, 3.0);
    SetPVarInt(playerid,"str",3);
    }
    if(GetPVarInt(playerid,"str") == 3)
    {
    SetPlayerCheckpoint(playerid, 1563.8516,-1438.4923,13.3828, 3.0);
    SetPVarInt(playerid,"str",4);
    }
    if(GetPVarInt(playerid,"str") == 4)
    {
    SetPlayerCheckpoint(playerid, 1371.4841,-1394.2799,13.4201, 3.0);
    SetPVarInt(playerid,"str",5);
    }
    if(GetPVarInt(playerid,"str") == 5)
    {
    SetPlayerCheckpoint(playerid, 1180.6565,-1396.7629,13.2467, 3.0);
    SetPVarInt(playerid,"str",6);
    }
    if(GetPVarInt(playerid,"str") == 6)
    {
    SetPlayerCheckpoint(playerid, 1058.6385,-1442.2699,13.3599, 3.0);
    SetPVarInt(playerid,"str",7);
    }
    if(GetPVarInt(playerid,"str") == 7)
    {
    SetPlayerCheckpoint(playerid, 1035.3191,-1741.6403,13.3812, 3.0);
    SetPVarInt(playerid,"str",8);
    }
    if(GetPVarInt(playerid,"str") == 8)
    {
    SetPlayerCheckpoint(playerid, 1108.0007,-1854.8330,13.3828, 3.0);
    SetPVarInt(playerid,"str",9);
    }
    if(GetPVarInt(playerid,"str") == 9)
    {
    SetPlayerCheckpoint(playerid, 1245.9342,-1854.9565,13.3828, 3.0);
    SetPVarInt(playerid,"str",10);
    }
    if(GetPVarInt(playerid,"str") == 10)
    {
    SetPlayerCheckpoint(playerid, 1429.3011,-1875.5471,13.3828, 3.0);
    SetPVarInt(playerid,"str",11);
    }
    if(GetPVarInt(playerid,"str") == 11)
    {
    SetPlayerCheckpoint(playerid, 1635.6691,-1888.2684,13.5549, 3.0);
    }

    Guten Tag,
    ich habe jetzt die neuste Version von XAMPP runtergeladen, klicke bei MySQL auf Start und möchte mein SA:MP Server starten, doch der startet nicht....
    Bei XAMPP zeigt das mir Grün an... kommen icht weiter!
    Kann mir wer helfen?


    lg