Beiträge von Lιση

    Geht nicht, benutze das Plugin. Glaube es geht nur LOG_ERROR und LOG_WARNING.



    Mit freundlichen Grüßen,
    DexterA1



    EDIT: Jeffrey:


    Hab mal Error, Warning und Debug einzeln gelogt, aber nur bei Debug kam was in der mysql_log.


    Spoiler anzeigen
    [21:06:00] [DEBUG] mysql_connect - host: "127.0.0.1", user: "root", database: "mcd", password: "****", port: 3306, autoreconnect: true
    [21:06:00] [DEBUG] CMySQLHandle::Create - creating new connection..
    [21:06:00] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
    [21:06:00] [DEBUG] CMySQLHandle::Create - connection created with ID = 1
    [21:06:00] [DEBUG] CMySQLConnection::Connect - connection was successful
    [21:06:00] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
    [21:06:00] [DEBUG] CMySQLConnection::Connect - connection was successful
    [21:06:00] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
    [21:06:00] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM haus", callback: "OnHausesLoad", format: "(null)"
    [21:06:00] [DEBUG] CMySQLQuery::CMySQLQuery() - constructor called
    [21:06:00] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM haus"..
    [21:06:00] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM frak_autos", callback: "OnFrakCarsLoad", format: "(null)"
    [21:06:00] [DEBUG] CMySQLQuery::CMySQLQuery() - constructor called
    [21:06:00] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM frak_autos"..
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnHausesLoad()] - starting query execution
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnHausesLoad()] - query was successful
    [21:06:00] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnHausesLoad()] - data being passed to ProcessCallbacks()
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad()] - starting query execution
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad()] - query was successful
    [21:06:00] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad()] - data being passed to ProcessCallbacks()
    [21:06:00] [DEBUG] Calling callback "OnHausesLoad"..
    [21:06:00] [DEBUG] cache_get_data - connection: 1
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "h_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_x", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "h_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_y", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "h_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_z", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ih_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ih_x", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ih_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ih_y", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ih_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ih_z", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "h_interior", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_interior", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content - row: 0, field_name: "besitzer", connection: 1, max_len: 24
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "besitzer", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "h_preis", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_preis", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "h_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_x", data: "1497.17"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "h_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_y", data: "-687.893"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "h_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_z", data: "95.5633"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "ih_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ih_x", data: "225.68"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "ih_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ih_y", data: "1021.45"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "ih_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ih_z", data: "1084.02"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 1, field_name: "h_interior", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_interior", data: "7"
    [21:06:00] [DEBUG] cache_get_field_content - row: 1, field_name: "besitzer", connection: 1, max_len: 24
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "besitzer", data: "[MCD]Mr.Finch"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 1, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "id", data: "9"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 1, field_name: "h_preis", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_preis", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "h_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_x", data: "2145.21"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "h_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_y", data: "-1084.65"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "h_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_z", data: "25.0371"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "ih_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "ih_x", data: "225.68"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "ih_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "ih_y", data: "1021.45"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "ih_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "ih_z", data: "1084.02"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 2, field_name: "h_interior", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_interior", data: "7"
    [21:06:00] [DEBUG] cache_get_field_content - row: 2, field_name: "besitzer", connection: 1, max_len: 24
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "besitzer", data: "Riddick"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 2, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "id", data: "10"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 2, field_name: "h_preis", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_preis", data: "5000"
    [21:06:00] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [21:06:00] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called
    [21:06:00] [DEBUG] Calling callback "OnFrakCarsLoad"..
    [21:06:00] [DEBUG] cache_get_data - connection: 1
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "model", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "model", data: "420"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "frakid", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "frakid", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "x", data: "1546.77"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "y", data: "-1026.36"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "z", data: "23.6859"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "r", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "r", data: "163.958"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "color1", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "color1", data: "3"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "color2", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "color2", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "paintjob", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "paintjob", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning1", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning1", data: "1003"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning2", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning2", data: "1004"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning3", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning3", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning4", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning4", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning5", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning5", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning6", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning6", data: "1010"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning7", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning7", data: "1019"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning8", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning8", data: "1096"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning9", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning9", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning10", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning10", data: "1087"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning11", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning11", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning12", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning12", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning13", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning13", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning14", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning14", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "locked", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "locked", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "0"
    [21:06:00] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [21:06:00] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called

    @Mr.Reese:


    Danke für die schnelle Rückmeldung, hier das Enum:


    Spoiler anzeigen
    enum playerInfo{
    eingeloggt,
    level,
    pid,
    adminlevel,
    fraktion,
    skin,
    fskin,
    dienst,
    aduty,
    nroller,
    cuffed,
    registrierung,
    banned,
    supcar,
    realchat,
    tooc,
    bigear,
    muted,
    gun1,
    gun2,
    gun3,
    gun4,
    gun5,
    gun6,
    guna1,
    guna2,
    guna3,
    guna4,
    guna5,
    guna6,
    pwarn,
    crimes,
    friedhof,
    snow,
    perso,
    geschlecht,
    gbdatum,
    bmoney,
    AmUmkleiden,
    AmUmkleidenF,
    rang,
    spawnchange,
    cars,
    paytime,
    afk,
    zsearch,
    visum,
    premium,
    papagei,
    vname[32],
    vleben,
    vftime
    }


    Mit freundlichen Grüßen,
    DexterA1

    ErikSon:


    Danke für die schnelle Rückmeldung. Leider erhalte ich wieder Errors.


    Spoiler anzeigen
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\pawno\include\AC.inc(1318) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\pawno\include\AC.inc(1325) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\pawno\include\AC.inc(1332) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1000) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1001) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1006) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1007) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1008) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1009) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1011) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1013) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1014) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(5578) : warning 202: number of arguments does not match definition
    C:\Users\Hartmut\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(7481) : error 021: symbol already defined: "AC_SetPlayerMoneyEx"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Spoiler anzeigen
    1 Error.

    Hallo liebe User,


    ich habe mal wieder ein Problem und weiß nicht weiter. Der Titel sagt schon alles. Gespeichert wird der String in der Datenbank, aber ausgelesen nicht.



    Code:
    cache_get_field_content(0,"vname",sInfo[playerid][vname],dbhandle);





    Mit freundlichen Grüßen,
    DexterA1

    Spoiler anzeigen
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\pawno\include\AC.inc(1337) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\pawno\include\AC.inc(1344) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\pawno\include\AC.inc(1351) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(23) : warning 201: redefinition of constant/macro (symbol "Rot")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(24) : warning 201: redefinition of constant/macro (symbol "Gelb")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(25) : warning 201: redefinition of constant/macro (symbol "Blau")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(26) : warning 201: redefinition of constant/macro (symbol "Orange")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(986) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(987) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(992) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(993) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(994) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(995) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(997) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(999) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(1000) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(2257) : warning 235: public function lacks forward declaration (symbol "AC_OnPlayerGiveDamage")
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(5519) : warning 202: number of arguments does not match definition
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(7422) : error 021: symbol already defined: "AC_SetPlayerMoneyEx"
    C:\Users\Sebastian Kühn\Documents\SAMP Server - MySQL\gamemodes\MCD2.pwn(9395) : error 021: symbol already defined: "OnUnoccupiedVehicleUpdate"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Spoiler anzeigen
    2 Errors.

    Guten Tag liebe Community,


    ich habe mal versucht den /wcheck Befehl vom MVD Script auf meins umzuschreiben, jedoch ohne erfolg. Wenn ich einen User checke dann zeigt er keine Waffen an, auch wenn er welche hat. Ich hoffe ihr könnnt mir helfen.



    Code:

    dcmd_wcheck(playerid,params[])
    {
    new pID;
    new string[128];
    if(!isAdmin(playerid,2))return SendClientMessage(playerid,Rot,"Du hast nicht das nötige Adminlevel!");
    if(sscanf(params,"u",pID))
    {
    SendClientMessage(playerid,Rot,"INFO: /wcheck [playerid]");
    }
    if(pID == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,Rot,"Diesen Spieler gibt es nicht.");
    }
    new giveplayer[MAX_PLAYER_NAME];
    new sweapon, sammo, weaponname[64];
    GetPlayerName(pID, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "%s hat folgende Waffen:", giveplayer);
    SendClientMessage(playerid, Blau, string);
    for (new i=0; i<9; i++)
    {
    GetPlayerWeaponData(pID, i, sweapon, sammo);
    if(sweapon != 0)
    {
    switch(sweapon)
    {
    case 1: weaponname = "Schlagring";
    case 2: weaponname = "Golfschläger";
    case 3: weaponname = "Schlagstock";
    case 4: weaponname = "Messer";
    case 6: weaponname = "Schaufel";
    case 7: weaponname = "Baseballschläger";
    case 8: weaponname = "Billiardstock";
    case 9: weaponname = "Katana";
    case 10: weaponname = "Kettensäge";
    case 11: weaponname = "Lila Dildo";
    case 12: weaponname = "Kleiner Vibrator";
    case 13: weaponname = "Weißes Dildo";
    case 14: weaponname = "Blumen";
    case 15: weaponname = "Gehstock";
    case 16: weaponname = "Granate";
    case 17: weaponname = "Rauchgranate";
    case 18: weaponname = "Molotov";
    case 19: weaponname = "";
    case 20: weaponname = "";
    case 21: weaponname = "Jetpack";
    case 22: weaponname = "9mm Pistole";
    case 23: weaponname = "Schallgedämpfte Pistole";
    case 24: weaponname = "Deagle";
    case 25: weaponname = "Shotgun";
    case 26: weaponname = "Spawn-off Shotgun";
    case 27: weaponname = "Combat Shotgun";
    case 28: weaponname = "Micro Uzi";
    case 29: weaponname = "Mp5";
    case 30: weaponname = "AK47";
    case 31: weaponname = "M4";
    case 32: weaponname = "Tec9";
    case 33: weaponname = "Country Rifle";
    case 34: weaponname = "Sniper";
    case 35: weaponname = "Racketenwerfer";
    case 36: weaponname = "Racketenwerfer";
    case 37: weaponname = "Flammenwerfer";
    case 38: weaponname = "Mingun";
    case 39: weaponname = "Fernzünd bomben";
    case 40: weaponname = "Detonator";
    case 41: weaponname = "Spray";
    case 42: weaponname = "Feuerlöscher";
    case 43: weaponname = "Camera";
    case 44: weaponname = "Nachtsicht";
    case 45: weaponname = "Thermal sicht";
    case 46: weaponname = "Fallschirm";
    }
    format(string, sizeof(string), "%d: %s (%d|%d)", i, weaponname, sweapon, sammo);
    if(sweapon == 44 || sweapon == 40 || (sweapon <= 39 && sweapon >= 35) || sweapon == 32 || sweapon == 28 || sweapon == 27 || sweapon == 26 || sweapon == 21 || sweapon == 18 || sweapon == 16)
    {
    SendClientMessage(playerid, Rot, string);
    }
    else SendClientMessage(playerid, Gelb, string);
    }
    return 1;
    }
    return 1;
    }




    Mit freundlichen Grüßen,
    DexterA1

    Hallo liebe Community,


    ich habe einen /accept Befehl mit ocmd erstellt. Und der soll ebend mehrere Funktionen haben (z.B.: /accept invite, /accept job, /accept medic, ...). Mein Problem ist das wenn ich /accept invite eingebe immer die Nachricht "INFO: /accept [invite]" kommt.



    Hier mein Code:
    ocmd:accept(playerid, params[])
    {
    new item[64];
    if(sscanf(params,"s[64]",item))return SendClientMessage(playerid, Rot, "INFO: /accept [invite]");
    if(!strcmp(item, "invite", false))
    {
    if(GetPVarInt(playerid, "inv_fraktid") == 0)return SendClientMessage(playerid, Rot, "Du wurdest in keine Fraktion eingeladen.");
    new fID = GetPVarInt(playerid, "inv_fraktid");
    sInfo[playerid][fraktion] = fID;
    sInfo[playerid][rang] = 1;
    new string[128];
    format(string,sizeof(string), "Du bist der Fraktion %s beigetreten.", fInfo[fID][f_name]);
    SendClientMessage(playerid, Gelb, string);
    format(string,sizeof(string), "%s ist der Fraktion beigetreten.", SpielerName(playerid));
    SendClientMessage(GetPVarInt(playerid, "inv_inviter"), Gelb, string);
    SetPVarInt(playerid, "inv_fraktid", 0);
    return 1;
    }
    return 1;
    }


    Ich hoffe, ihr könnt mir helfen.



    Mit freundlichen Grüßen
    DexterA1

    Hallo liebe Community,


    ich habe mir ein ATM-Enum erstelllt indem alle coords von den Bankautomaten stehen, aber wenn ich /bankmenu eingebe geht das nur bei einem??


    Codes:
    enum Bankautomaten
    {
    Float:iatmx,
    Float:iatmy,
    Float:iatmz,
    Float:iatmxrot,
    Float:iatmyrot,
    Float:iatmzrot,
    }
    new Atms[13][Bankautomaten] =
    {
    {1189.14832, -917.02618, 42.88810, 0.00000, 0.00000, 8.00000},
    {2233.20, -1161.80, 25.50, 0.0, 0.0, 270.0},
    {2424.10, -1219.0, 25.20, 0.0, 0.0, 0.0},
    {784.70, -1329.80, 13.20, 0.0, 0.0, 178.0},
    {378.60, -2060.70, 7.50, 0.0, 0.0, 92.0},
    {1539.0, -1614.30, 13.20, 0.0, 0.0, 271.9995},
    {1837.30, -1690.70, 13.0, 0.0, 0.0, 270.0},
    {1000.90, -922.70, 42.0, 0.0, 0.0, 278.0},
    {-1980.6, 131.6, 27.3, 0.0, 0.0, 270.0},
    {-1591.2, 716.8, 8.9, 0.0, 0.0, 182.0},
    {-2234.6, 2351.7, 4.6, 0.0, 0.0, 312.0},
    {215.2, 17.0, 2.2, 0.0, 0.0, 90.0},
    {2021.5, 1016.7, 10.3, 0.0, 0.0, 0.0}
    };
    //Bankautomaten
    for(new i=0;i<sizeof(Atms);i++)
    {
    CreateDynamicObject(2942,Atms[i][iatmx],Atms[i][iatmy],Atms[i][iatmz],Atms[i][iatmxrot],Atms[i][iatmyrot],Atms[i][iatmzrot]);
    Create3DTextLabel("{EBFF00}Bankterminal\n{FFFFFF}/bankmenu {EBFF00}oder {FFFFFF}/ueberweisung",Weiß, Atms[i][iatmx],Atms[i][iatmy],Atms[i][iatmz]+0.5,15.0,0,0);
    CreateDynamicMapIcon(Atms[i][iatmx],Atms[i][iatmy],Atms[i][iatmz],52, -1, -1, -1, -1, 500);
    }
    if(strcmp(cmd, "/bankmenu", true) == 0)
    {
    if(sInfo[playerid][friedhof]==1)
    {
    SendClientMessage(playerid,Rot,"Tote können keine Befehle benutzen!");
    return 1;
    }
    for(new i=0;i<sizeof(Atms);i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 3, 2316.5691,-7.3099,26.7422))
    {
    new string[128];
    format(string,sizeof(string),"Willkommen bei Bank of San Andreas.\n\nKonto: %s\nKontostand: %d$\n",SpielerName(playerid),sInfo[playerid][bmoney]);
    ShowPlayerDialog(playerid,DIALOG_BANK,DIALOG_STYLE_MSGBOX,"Bankterminal",string,"Einzahlen","Abbuchen");
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3, Atms[i][iatmx],Atms[i][iatmy],Atms[i][iatmz]))
    {
    new string[128];
    format(string,sizeof(string),"Willkommen bei Bank of San Andreas.\n\nKonto: %s\nKontostand: %d$\n",SpielerName(playerid),sInfo[playerid][bmoney]);
    ShowPlayerDialog(playerid,DIALOG_BANK,DIALOG_STYLE_MSGBOX,"Bankterminal",string,"Einzahlen","Abbuchen");
    return 1;
    }
    return SendClientMessage(playerid,Rot,"Du bist nicht in der nähe eines Bankautomaten oder in der Bank!");
    }
    return 1;
    }


    Geladen wird jeder Bankautomat aber /bankmenu geht nur bei einem.. :(
    Ich hoffe ihr könnt mir helfen...



    Mit freundlichen Grüßen,
    DexterA1

    if(strcmp(cmdtext, "/gotomc", true,10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (GetPlayerState(playerid) == 2)
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    SetVehiclePos(tmpcar, -2336.8794,-1602.8849,483.7280);
    }
    else
    {
    SetPlayerPos(playerid, -2336.8794,-1602.8849,483.7280);
    }
    SendClientMessage(playerid, Gelb, "Du hast dich erfolgreich zum Mount Chiliad teleportiert!");
    return 1;
    }
    return 1;
    }

    //Globale Variablen
    new UCL[MAX_VEHICLES];
    new sirene[MAX_VEHICLES];
    new sirene1[MAX_VEHICLES];
    new sirene2[MAX_VEHICLES];
    new sirene3[MAX_VEHICLES];
    new sirene4[MAX_VEHICLES];


    if(strcmp(cmdtext,"/sirene",true)==0)
    {
    if(UCL[GetPlayerVehicleID(playerid)] == 0)
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(tmpcar) == 560)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene4[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0.0,0.85,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    AttachObjectToVehicle(sirene4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0,0.9,0.4,0,0,0);//Mittig im Fenster
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    }
    else if(UCL[GetPlayerVehicleID(playerid)] == 1)
    {
    DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene4[GetPlayerVehicleID(playerid)]);
    UCL[GetPlayerVehicleID(playerid)] = 0;
    return 1;
    }
    }
    return 1;
    }

    Hallo liebe Community,


    ich suche ein bestimmtes Pickup das meistens für Reperaturen verwendet wird (z.B. Mechaniker). Das ist so ein offender Kasten.



    @Admin:
    Falls falsche Kategorie -> verschieben.




    Mit freundlichen Grüßen,
    DexterA1

    Erstmal guten Abend,


    versuchs mal so:


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys==KEY_SECONDARY_ATTACK)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1555.5045,-1675.6730,16.1953))
    {
    SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
    SetPlayerInterior(playerid,6);
    }
    }
    return 1;
    }

    Ich hatte das selbe Problem, du musst bei /slap Abfragen ob er im Admindienst ist und wenn ja dann soll er nicht geslappt werden. Is glaube die einzige Lösung...


    if(strcmp(cmd, "/slap", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: /slap [playerid]");
    return 1;
    }
    new playa;
    new Float:shealth;
    new Float:slx, Float:sly, Float:slz;
    playa = ReturnUser(tmp);
    if (PlayerInfo[playerid][pAdmin] >=4)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    if(Adminduty[playa]==0)
    {
    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerHealth(playa, shealth);
    SetPlayerHealth(playa, shealth-5);
    GetPlayerPos(playa, slx, sly, slz);
    SetPlayerPos(playa, slx, sly, slz+5);
    PlayerPlaySound(playa, 1130, slx, sly, slz+5);
    printf("AdmCmd: %s slapped %s",sendername, giveplayer);
    new slrand = random(4);
    if(slrand == 0) format(string, sizeof(string), "[SYS:] %s hat %s geslappt",sendername,giveplayer);
    else if(slrand == 1) format(string, sizeof(string), "[SYS:] %s hat %s geslappt.",sendername,giveplayer);
    else if(slrand == 2) format(string, sizeof(string), "[SYS:] %s hat %s geslappt.",giveplayer,sendername);
    else format(string, sizeof(string), "[SYS:] %s hat %s geslappt.",giveplayer,sendername);
    ABroadCast(COLOR_LIGHTRED,string,1);
    }
    else
    {
    SendClientMessage(playerid,COLOR_LIGHTRED,"Dieser Spieler befindet sich im Admindienst!);
    return 1;
    }
    ]
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Das darfst du nicht tun!");
    }
    }
    return 1;
    }