ID [34] is not connect

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo, ich habe viele Befehle wie z.B
    CMD:givemoney(playerid,params[]) {
    new moneys,giveplayerid,giveplayer[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME],playermoney[MAX_PLAYERS],string[64];
    if (sscanf(params, "ui",giveplayerid, moneys)) return Inter_SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /givemoney [playerid] [amount]");
    // if (!IsNumeric(giveplayerid)) giveplayerid = ReturnPlayerID(giveplayerid);
    if (IsPlayerConnected(giveplayerid)) {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    playermoney[playerid] = GetPlayerCash(playerid);
    if (moneys > 0 && playermoney[playerid] >= moneys) {
    GivePlayerCash(playerid, (-moneys));
    GivePlayerCash(giveplayerid, moneys);
    format(string, sizeof(string), "You have sent %s (id: %d), $%d.", giveplayer,giveplayerid, moneys);
    Inter_SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "You have recieved $%d from %s (id: %d).", moneys, sendername, playerid);
    Inter_SendClientMessage(giveplayerid, COLOR_GREEN, string);
    printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
    }
    else {
    Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, "Invalid transaction amount.");
    }
    }
    else {
    format(string, sizeof(string), "ID:%d is not an active player.", giveplayerid);
    Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
    }
    return 1;
    }


    die nicht richtig funktioniren,,,, immer zeigt es an, das der Spieler nicht connectet ist....


    wie kann ich das schnellstmöglich fixxenb

  • was?
    toll was bringt mir jetzt deine aussage?


    //brauche dringend hilfe...
    fast keine bfehele wo man einen 2ten spieler bracht funktionieren...

    Einmal editiert, zuletzt von Carbon-RL ()

  • ich mach immer /givemoney 1 111


    wie meinste des genau?
    //1. is nicht erledgit


    2. ich versuche mal scannf zu updaten


    //hab jetzt die neuste version von sscanf


    wenn ich z,BCMD:heal(playerid,params[]) {
    new giveplayerid,string[128];
    if (sscanf(params, "u", giveplayerid)) return Inter_SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /heal <ID>");
    // if (!IsNumeric(giveplayerid)) giveplayerid = ReturnPlayerID(giveplayerid);
    if(IsSpawned[playerid] == 0) {
    Inter_SendClientMessage(playerid, COLOR_ERROR, "Du bist tot, du kannst den Befehl nicht nutzen!");
    return 1;
    }
    if(AccInfo[playerid][Jailed] == 1) {
    Inter_SendClientMessage(playerid, COLOR_ERROR, "Du kannst den Befehl im Knast nicht benutzen!");
    return 1;
    }
    if(giveplayerid == playerid) {
    Inter_SendClientMessage(playerid, COLOR_ERROR, "Please use /healme to fix your own vehicle");
    return 1;
    }
    if(AccInfo[playerid][team] != TEAM_MEDIC && AccInfo[playerid][team] != TEAM_LVMEDIC) {
    Inter_SendClientMessage(playerid,COLOR_ERROR,"You are not a medic");
    return 1;
    }
    new mname[24];
    new pname[24];
    GetPlayerName(playerid,mname, 24);
    GetPlayerName(giveplayerid, pname, 24);
    if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
    format(string, sizeof(string), "%s(%d) Is not close enough. You cannot heal that player",pname,giveplayerid);
    Inter_SendClientMessage(playerid, COLOR_ERROR, string);
    return 1;
    }
    if(wantsheal[giveplayerid] == 0) {
    format(string, sizeof(string), "Medic %s(%d) has attempted to heal you. Type /medic if you need a Medic",mname,playerid);
    Inter_SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
    format(string, sizeof(string), "%s(%d) has not asked for a medic. You cannot heal that player", pname,giveplayerid);
    Inter_SendClientMessage(playerid,COLOR_ERROR, string);
    }
    else if(wantsheal[giveplayerid] == 1) {
    new mrand = random(3500);
    Inter_SendClientMessage(giveplayerid,0xA9A9A9AA, "|_Health Restored_|");
    format(string, sizeof(string), "Medic %s(%d) has healed you for $%d",mname,playerid,mrand);
    Inter_SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
    Inter_SendClientMessage(playerid,0xA9A9A9AA, "|_Player Health Restored_|");
    format(string, sizeof(string), "%s(%d) has been healed. You earned $%d", pname,giveplayerid,mrand);
    Inter_SendClientMessage(playerid,COLOR_FORESTGREEN, string);
    SetPlayerHealth(giveplayerid,100);
    GivePlayerCash(giveplayerid,-mrand);
    GivePlayerCash(playerid,mrand);
    SetPlayerScore(playerid, GetPlayerScore(playerid) +1);
    wantsheal[giveplayerid] =0;
    }
    return 1;
    }


    eingebe steht bei mir ingame immer:
    Benutze: /heal <ID>
    Benutze: /heal <ID>
    auch wenn ich /heal 1 mach komt immer nur
    Benutze: /heal <ID>

    2 Mal editiert, zuletzt von Carbon-RL ()

  • ich hab mir jetzt schon die neue sscanf version draufgemacht... geht immernochnet....


    immer wenn ich /heal 1 eingebe kommt nur
    Benutze: /heal <ID> immer wieder....#
    PS: natürlich war ID1 online...-.-

  • ja ich hab glaubig die neusten.. is glaubig 2.6 oder?

  • ja naklar hab ich das...


    habs nochmal alles neu gemacht neue includes etc.. jezt kommt das


    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.
    [16:52:32] sscanf error: System not initialised.