Was ist daran Falsch?

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
  • Hey,


    Was ist an diesem Befehl Falsch , kriege da Errors




    if(strcmp(cmd, "/armorpoint", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,30.0,725.3989,-1462.9933,22.2109) || IsPlayerInRangeOfPoint(playerid,30.01646.2810,-1813.0746,13.5322) || IsPlayerInRangeOfPoint(playerid,30.0,1752.8209,-1884.8654,13.5573))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Du hast dir am Armour Point eine Schutzweste Angezogen");
    SetPlayerArmour(playerid, 100);
    }
    return 1;
    }


    Errors :


    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(18437) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(18445) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : error 001: expected token: ",", but found "."
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : error 029: invalid expression, assumed zero
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : warning 215: expression has no effect
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : warning 215: expression has no effect
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : warning 215: expression has no effect
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : error 001: expected token: ";", but found ")"
    C:\Users\Daniel Keller\Desktop\Script\GUR0.5b.pwn(24437) : fatal error 107: too many error messages on one line

  • if(strcmp(cmd, "/armorpoint", true) == 0) //24435
    { //24436
    if(IsPlayerInRangeOfPoint(playerid,30.0,725.3989,-1462.9933,22.2109) || IsPlayerInRangeOfPoint(playerid,30.01646.2810,-1813.0746,13.5322) || IsPlayerInRangeOfPoint(playerid,30.0,1752.8209,-1884.8654,13.5573)) //24437
    { //24438
    SendClientMessage(playerid, COLOR_WHITE, "Du hast dir am Armour Point eine Schutzweste Angezogen"); //24439
    SetPlayerArmour(playerid, 100); //24440
    } //24441
    return 1; //24442
    } //24443


    //Edit alles in if(IsPlayerInRangeOfPoint(playerid,30.0,725.3989,-1462.9933,22.2109) || IsPlayerInRangeOfPoint(playerid,30.01646.2810,-1813.0746,13.5322) || IsPlayerInRangeOfPoint(playerid,30.0,1752.8209,-1884.8654,13.5573)) //24437

  • if(IsPlayerInRangeOfPoint(playerid,30.0,725.3989,-1462.9933,22.2109) || IsPlayerInRangeOfPoint(playerid,Entferung fehlt,30.01646.2810,-1813.0746,13.5322) || IsPlayerInRangeOfPoint(playerid,30.0,1752.8209,-1884.8654,13.5573))

    Back to the roots!