Beiträge von EliteBread

    Hallo User,
    ich weiß ich habe schon oft diese frage gestellt und auch schon gesucht...
    aber leider finde ich kein dcmd_licht was mit einem befehl an und aus geht .
    ich habe ein motor system aber ich weiß nicht wie ich das mit licht mache



    Motor sytem:


    dcmd_motor(playerid,params[])
    {
    #pragma unused params


    new vehicleid;
    vehicleid = GetPlayerVehicleID(playerid);
    if(vEngine[vehicleid] == 0)
    {
    vEngine[vehicleid] = 1;
    TogglePlayerControllable(playerid,1);
    SendClientMessage(playerid,Weiß,"Du hast den Motor {00CC00}angeschaltet ");
    BrowsingCar = 1;
    }
    else
    {
    vEngine[vehicleid] = 0;
    SendClientMessage(playerid,Weiß,"Du hast den Motor {E50000}ausgeschaltet ");
    BrowsingCar = 0;


    }
    return 0;
    }

    habe das jetzt so
    if(PlayerInfo[playerid][Duty] == false) return SendClientMessage(playerid,Rot,"Du bist nicht im Dienst");



    ohne das new heitß das jetzt bool´s werden immer mit true oder false beantwortet

    Hallo User,
    ich habe gemacht das wen cuff machen will Duty und Pd,FBI oder Army sein muss,
    aber leider kommt einer fehler bei der Duty abfrage ich frage duty per bool ab also:


    bool:Duty,


    jetzt habe ich das in meinem Befehl eingebaut also so:


    {
    if(PlayerInfo[playerid][Beruf] >= 9 && PlayerInfo[playerid][Beruf] != 16)
    if(PlayerInfo[playerid][Duty] == 1) return SendClientMessage(playerid,Rot,"Du bist nicht im Dienst");
    {


    kommen diese Fehler....

    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(1342) : warning 213: tag mismatch



    MFG Elite

    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(1342) : warning 213: tag mismatch
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(1363) : warning 213: tag mismatch
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2218) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2221) : error 029: invalid expression, assumed zero
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2221) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2222) : error 017: undefined symbol "vehiclei"
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2223) : warning 217: loose indentation
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2223) : error 017: undefined symbol "d"
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2223) : error 029: invalid expression, assumed zero
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2229) : error 029: invalid expression, assumed zero
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2230) : warning 217: loose indentation
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2237) : error 075: input line too long (after substitutions)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Errors.


    wie kürze ich den input den

    Moin Com,
    ich habe glaub ich ein klmmer fehler weiß aber nicht wo :(


    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(1342) : warning 213: tag mismatch
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(1363) : warning 213: tag mismatch
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2219) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2222) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2224) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2226) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2228) : error 075: input line too long (after substitutions)
    C:\Users\EliteBread\Desktop\Selfmade Script\gamemodes\Bread.pwn(2239) : error 075: input line too long (after substitutions)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.




    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    if(GetVehicleModel(vehicleid) == 448 || GetVehicleModel(vehicleid) == 461 || GetVehicleModel(vehicleid) == 462 || GetVehicleModel(vehicleid) == 463 || GetVehicleModel(vehicleid) == 468 || GetVehicleModel(vehicleid) == 471 || GetVehicleModel(vehicleid) == 521 || GetVehicleModel(vehicleid) == 522 || GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 581 || GetVehicleModel(vehicleid) == 586)

    {
    if(PlayerInfo[playerid][BikeL] != 1)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,Rot,"Du hast keinen Motorradschein");
    }
    }


    {
    if(GetVehicleModel(vehicleid) == 400 || GetVehicleModel(vehicleid) == 401 || GetVehicleModel(vehicleid) == 402 || GetVehicleModel(vehicleid) == 404 || GetVehicleModel(vehicleid) == 405 || GetVehicleModel(vehicleid) == 409 || GetVehicleModel(vehicleid) == 410 || GetVehicleModel(vehicleid) == 411 || GetVehicleModel(vehicleid) == 412 || GetVehicleModel(vehicleid) == 413 || GetVehicleModel(vehicleid) == 414 || GetVehicleModel(vehicleid) == 415 || GetVehicleModel(vehicleid) == 416 || GetVehicleModel(vehicleid) == 418 || GetVehicleModel(vehicleid) == 419 || GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) == 421 || GetVehicleModel(vehicleid) == 422 || GetVehicleModel(vehicleid) == 423 || GetVehicleModel(vehicleid) == 424 || GetVehicleModel(vehicleid) == 426 ||
    || GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 428 || GetVehicleModel(vehicleid) == 429 || GetVehicleModel(vehicleid) == 434 || GetVehicleModel(vehicleid) == 436 ||
    || GetVehicleModel(vehicleid) == 438 || GetVehicleModel(vehicleid) == 439 || GetVehicleModel(vehicleid) == 440 || GetVehicleModel(vehicleid) == 442 || GetVehicleModel(vehicleid) == 445 || GetVehicleModel(vehicleid) == 451 || GetVehicleModel(vehicleid) == 458 || GetVehicleModel(vehicleid) == 459 || GetVehicleModel(vehicleid) == 466 || GetVehicleModel(vehicleid) == 467 || GetVehicleModel(vehicleid) == 470 || GetVehicleModel(vehicleid) == 474 || GetVehicleModel(vehicleid) == 475 || GetVehicleModel(vehicleid) == 477 || GetVehicleModel(vehicleid) == 478 || GetVehicleModel(vehicleid) == 479 || GetVehicleModel(vehicleid) == 480 || GetVehicleModel(vehicleid) == 482 || GetVehicleModel(vehicleid) == 483 || GetVehicleModel(vehicleid) == 489 || GetVehicleModel(vehicleid) == 490 || GetVehicleModel(vehicleid) == 491 || GetVehicleModel(vehicleid) == 492 || GetVehicleModel(vehicleid) == 494 || GetVehicleModel(vehicleid) == 495 || GetVehicleModel(vehicleid) == 496
    || GetVehicleModel(vehicleid) == 498 || GetVehicleModel(vehicleid) == 499 || GetVehicleModel(vehicleid) == 500 || GetVehicleModel(vehicleid) == 502 || GetVehicleModel(vehicleid) == 503 || GetVehicleModel(vehicleid) == 504 || GetVehicleModel(vehicleid) == 505 || GetVehicleModel(vehicleid) == 506 || GetVehicleModel(vehicleid) == 507 || GetVehicleModel(vehicleid) == 508 || GetVehicleModel(vehicleid) == 516 || GetVehicleModel(vehicleid) == 517 || GetVehicleModel(vehicleid) == 518 || GetVehicleModel(vehicleid) == 525 || GetVehicleModel(vehicleid) == 526 || GetVehicleModel(vehicleid) == 527 || GetVehicleModel(vehicleid) == 528 || GetVehicleModel(vehicleid) == 529 || GetVehicleModel(vehicleid) == 531 || GetVehicleModel(vehicleid) == 532 || GetVehicleModel(vehicleid) == 533 || GetVehicleModel(vehicleid) == 534 || GetVehicleModel(vehicleid) == 535 || GetVehicleModel(vehicleid) == 536 || GetVehicleModel(vehicleid) == 540 || GetVehicleModel(vehicleid) == 541
    || GetVehicleModel(vehicleid) == 542 || GetVehicleModel(vehicleid) == 543 || GetVehicleModel(vehicleid) == 545 || GetVehicleModel(vehicleid) == 546 || GetVehicleModel(vehicleid) == 547 || GetVehicleModel(vehicleid) == 549 || GetVehicleModel(vehicleid) == 550 || GetVehicleModel(vehicleid) == 551 || GetVehicleModel(vehicleid) == 552 || GetVehicleModel(vehicleid) == 554 || GetVehicleModel(vehicleid) == 555 || GetVehicleModel(vehicleid) == 558 || GetVehicleModel(vehicleid) == 560 || GetVehicleModel(vehicleid) == 561 || GetVehicleModel(vehicleid) == 562 || GetVehicleModel(vehicleid) == 565 || GetVehicleModel(vehicleid) == 566 || GetVehicleModel(vehicleid) == 567 || GetVehicleModel(vehicleid) == 568 || GetVehicleModel(vehicleid) == 573 || GetVehicleModel(vehicleid) == 575 || GetVehicleModel(vehicleid) == 576 || GetVehicleModel(vehicleid) == 579 || GetVehicleModel(vehicleid) == 580
    || GetVehicleModel(vehicleid) == 582 || GetVehicleModel(vehicleid) == 585 || GetVehicleModel(vehicleid) == 587 || GetVehicleModel(vehicleid) == 588 || GetVehicleModel(vehicleid) == 589 || GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 597 || GetVehicleModel(vehicleid) == 598 || GetVehicleModel(vehicleid) == 599 || GetVehicleModel(vehicleid) == 600 || GetVehicleModel(vehicleid) == 601 || GetVehicleModel(vehicleid) == 602 || GetVehicleModel(vehicleid) == 603 || GetVehicleModel(vehicleid) == 604 || GetVehicleModel(vehicleid) == 605 || GetVehicleModel(vehicleid) == 609)
    {
    if(PlayerInfo[playerid][CarL] != 1)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,Rot,"Du hast keinen Auto-Fühererschein");
    }
    }


    {
    if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593)
    {
    if(PlayerInfo[playerid][FlyL] != 1)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,Rot,"Du hast keinen Flugschein");
    }
    }


    return 1;
    }

    habe ich
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1342) : warning 213: tag mismatch
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1363) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Warnings.



    dcmd_cuff(playerid,params[])
    {
    if(PlayerInfo[playerid][Beruf] >= 9 && PlayerInfo[playerid][Beruf] != 16)
    if(PlayerInfo[playerid][Duty] == 1) return SendClientMessage(playerid,Rot,"Du bist nicht im Dienst");
    {
    if(!IsAGangCar(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, Rot,"Du bist in keinem Auto");
    {
    new pID, hname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"i",pID)) return SendClientMessage(playerid,Gelb,"Benutze: /cuff [playerid]");
    GetPlayerName(playerid,hname,sizeof(hname));
    format(string,sizeof(string),"Du hast %s die Handschellen angelegt!",hname);
    SendClientMessage(playerid,Grün,string);
    format(string,sizeof(string),"Dir wurden von %s Handschellen angelegt",hname);
    SendClientMessage(pID,Rot,string);
    TogglePlayerControllable(pID,0);
    }
    }
    return 1;
    }


    dcmd_uncuff(playerid,params[])
    {
    if(PlayerInfo[playerid][Beruf] <= 3 && PlayerInfo[playerid][Beruf] != 0)
    if(PlayerInfo[playerid][Duty] == 1) return SendClientMessage(playerid,Rot,"Du bist nicht im Dienst");
    {
    if(!IsAGangCar(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, Rot,"Du bist in keinem Auto");
    {
    new pID, hname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"i",pID)) return SendClientMessage(playerid,Gelb,"Benutze: /uncuff [playerid]");
    GetPlayerName(playerid,hname,sizeof(hname));
    format(string,sizeof(string),"Du hast %s die Handschellen abgenommen!",hname);
    SendClientMessage(playerid,Rot,string);
    format(string,sizeof(string),"Dir wurden von %s die Handschellen abgemacht",hname);
    SendClientMessage(pID,Rot,string);
    TogglePlayerControllable(pID,1);
    }
    }
    return 1;
    }

    dcmd_cuff(playerid,params[])
    {
    if(PlayerInfo[playerid][Beruf] >= 9 && PlayerInfo[playerid][Beruf] != 16)
    if(PlayerInfo[playerid][Duty] == 1) return SendClientMessage(playerid,Rot,"Du bist nicht im Dienst")
    {
    if(!IsAGangCar(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, Rot,"Du bist in keinem Auto");
    {
    new pID, hname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"i",pID)) return SendClientMessage(playerid,Gelb,"Benutze: /cuff [playerid]");
    GetPlayerName(playerid,hname,sizeof(hname));
    // SendClientMessage(playerid,Blau,"Du hast %s gefesselt",hname);
    format(string,sizeof(string),"Dir wurden von %s Handschellen angelegt",hname);
    SendClientMessage(pID,Rot,string);
    TogglePlayerControllable(pID,0);
    }
    }
    return 1;
    }


    das mit der if abfrage duty

    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1360) : warning 213: tag mismatch



    dann kommt das
    welche variable habe ich den falsch difiniert
    was heißt das denn das wäre nett wen das mir jemand sagt

    Hallo User,
    wie kann ich es machen das ich das auch sehe also
    Du hast %s gefesselt
    und
    Du hast %s freigelassen


    und wie kann ich mache das bei /tie der Bildschirm schwarz wird und bei untie wieder normal ???





    dcmd_tie(playerid,params[])
    {
    if(PlayerInfo[playerid][Beruf] >= 9 && PlayerInfo[playerid][Beruf] != 16)
    {
    if(!IsAGangCar(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, Rot,"Du bist in keinem Gangcar");
    {
    new pID, hname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"i",pID)) return SendClientMessage(playerid,Gelb,"Benutze: /tie [playerid]");
    GetPlayerName(playerid,hname,sizeof(hname));
    format(string,sizeof(string),"Du wurdest von %s gefesselt",hname);
    SendClientMessage(pID,Rot,string);
    TogglePlayerControllable(pID,0);
    }
    }
    return 1;
    }


    dcmd_untie(playerid,params[])
    {
    if(PlayerInfo[playerid][Beruf] >= 9 && PlayerInfo[playerid][Beruf] != 16)
    {


    if(!IsAGangCar(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, Rot,"Du bist in keinem Gangcar");
    {
    new pID, hname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"i",pID)) return SendClientMessage(playerid,Gelb,"Benutze: /untie [playerid]");
    GetPlayerName(playerid,hname,sizeof(hname));
    format(string,sizeof(string),"Du wurdest von %s entfesselt",hname);
    SendClientMessage(pID,Rot,string);
    TogglePlayerControllable(pID,1);
    }
    }
    return 1;
    }
    IST DAS SCHWER ????

    mich auch....



    will jetzt wen man onduty ist das das erst geht habe das so gemachst


    if(PlayerInfo[playerid][Duty] == 1) return SendClientMessage(playerid,Rot,"Du bist nicht im Dienst")



    da kommt dieser fehler


    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1360) : warning 213: tag mismatch
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1361) : error 001: expected token: ";", but found "{"

    dcmd_spawn(playerid,params[])
    {
    if(PlayerInfo[playerid][Admin] >= 4)
    {
    new pID, grund[50], name[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"us",pID,grund))
    {
    SendClientMessage(playerid,Gelb,"Benutze: /spawn [playerid][Grund]");
    {
    GetPlayerName(playerid,aname,sizeof(aname));
    GetPlayerName(pID,name,sizeof(name));
    format(string,sizeof(string),"Du wurdest von %s gespawnt. Grund: %s",aname,grund);
    SendClientMessage(pID,Rot,string);
    format(string,sizeof(string),"%s wurde von %s gespawnt. Grund: %s",name,aname,grund);
    SendAdminMessage(Rot,string);
    SpawnPlayer(pID);
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist kein Admin");
    return 1;
    }
    return 1;
    }


    so ist es richtig

    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1439) : warning 225: unreachable code
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(1456) : warning 209: function "dcmd_spawn" should return a value
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Warnings.


    Moin Com,
    ich habe probiert ein spawn befehl zu machen falls man egen jemand spawn muss aber anscheind ist ein klamer fehler drinen


    dcmd_spawn(playerid,params[])
    {
    if(PlayerInfo[playerid][Admin] >= 4)
    {
    new pID, grund[50], name[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME];
    new string[128];
    if(sscanf(params,"us",pID,grund))
    {
    SendClientMessage(playerid,Gelb,"Benutze: /spawn [playerid][Grund]");
    return 1;
    {
    GetPlayerName(playerid,aname,sizeof(aname));
    GetPlayerName(pID,name,sizeof(name));
    format(string,sizeof(string),"Du wurdest von %s gespawnt. Grund: %s",aname,grund);
    SendClientMessage(pID,Rot,string);
    format(string,sizeof(string),"%s wurde von %s gespawnt. Grund: %s",name,aname,grund);
    SendAdminMessage(Rot,string);
    SpawnPlayer(pID);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist kein Admin");
    return 1;
    }
    }


    hoffe um schnelle hilfe