Beiträge von G0lD3nW33eDGr0w3eR

    ocmd:heiraten(playerid,params[])
    {
    new pID;
    if(sscanf(params,"ui",pID))return SendClientMessage(playerid,GREY,"/Heiraten [Playerid]");
    {
    if(IsPlayerConnected(pID)
    {
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,GREEN,"Du hast erfolgreich den Antrag gestellt");
    }
    return 1;
    }

    }


    Error id 1 : lini 247 "Expected token "(" .but found "{"
    wie kann ich diesen error fixen?

    new pID ?
    wie kann ich denn player id in
    mein commandtext einbavun also sprich
    if(srcmp"/heiraten pID",cmdtext, true, 10)==0)
    {
    new pID; ? so ?

    }
    oder k.a du weisst ja was ich meine , ich möchte es nicht über ocmd machen da ich es nicht so gescheid durchblicke! am ende sollte man halt ingame:
    /heiraten [playerid]
    können !
    ich bin dank bar für jeden beitrag im voraus!
    MFG Fishtime9!

    hallo , ich scripte zurzeit die fraktion police (lspd) und hab /handcups drauf damit der spieler gefesselt ist sogesagt, aber ich möchte
    jetzt das er nach einer bestimmten zeit die knacken kann mit einem befehl also ürgendwas mit if ...... wahrscheinlich, und ich möchte es auch
    gerne in Vehicles ihn die Handcups anlegen können und ihn flugzeugen :) .


    bedanke mich bei jeden script beitrag! ;)
    MFG Fishtime9

    danke , :) das hat sehr geholfen aber jetzt hab ich ein problem mit mein taxiport script , wenn ich das dialog was anklick dann passiert nix obwohl ich alles defeniert habe! .
    hier mein script:
    #include <a_samp>
    //TaxiPortCars defeniert:
    new Taxicar[3];
    //Colors Defeniert:
    #define ROT 0xFFE60000
    #define GREEN 0xFF42D254
    #define GREY 0xFF8E8687
    #define BLUE 0xFF3C27ED
    #define BLACK 0xFF000000
    #define DIALOG_PORTAL 2
    main()
    {


    }


    public OnGameModeInit()
    {
    Taxicar[0]=AddStaticVehicle(420,1220.9696,-872.6297,42.5229,192.9013,31,64); //TaxiPortCar1
    Taxicar[1]=AddStaticVehicle(420,1218.0842,-871.4683,42.8992,191.9862,31,64); //TaxiPortCar2
    Taxicar[2]=AddStaticVehicle(420,1214.6893,-872.6481,42.9069,185.1157,31,64); //TaxiPortCar3

    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {

    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/TaxiCall", cmdtext, true, 10) == 0)
    {
    SetVehiclePos(Taxicar[0],2641.4780,-2003.4609,13.5547);
    SendClientMessage(playerid, GREEN,"Du hast erfolgreich ein Taxi Gerufen!");
    ChangeVehicleColor(Taxicar[0], 166, 166);
    PutPlayerInVehicle(playerid, Taxicar[0], 3);
    ShowPlayerDialog(playerid,DIALOG_PORTAL,DIALOG_STYLE_LIST,"Wähle wohin Der taxi fahrer dich hin bringen Soll!","Bsn(BurgershotNord)(350$)\nPaynSpray(385$)\nAmmuNationShop(260$)","OK","CANCEL")


    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    SendClientMessage(playerid,BLUE,"Viel Spass am Fahren , achte aber bitte an die STVO regeln!");
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    SetVehicleToRespawn(Taxicar[0]);
    SetVehicleToRespawn(Taxicar[1]);
    SetVehicleToRespawn(Taxicar[2]);
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == DIALOG_PORTAL)
    {
    if(response == 1)
    {
    if(listitem == 0)
    {
    //BSN(BurgerShotNord//
    SendClientMessage(playerid,BLUE,"Die Fahrt hat dir 350$ Gekostet!");
    ChangeVehicleColor(Taxicar[1], 166, 166);
    GivePlayerMoney(playerid,-350);
    SetVehiclePos(Taxicar[1],1211.1602,-930.2238,42.3990);
    PutPlayerInVehicle(playerid,Taxicar[1], 3);
    }
    if(listitem == 1)
    {
    //PaynSpray//
    SendClientMessage(playerid,BLUE,"Die Fahrt hat dir 385$Gekostet!");
    ChangeVehicleColor(Taxicar[2], 166, 166);
    GivePlayerMoney(playerid,-385);
    SetVehiclePos(Taxicar[2],1036.4851,-1033.9794,31.3645);
    PutPlayerInVehicle(playerid, Taxicar[2], 3);
    }
    }
    if(response == 0)
    {
    SendClientMessage(playerid,GREEN,"Dann halt nicht!");
    RemovePlayerFromVehicle(playerid);
    }
    }
    return 1;
    }

    hier ien nützliches programm das dir weiter hin besser hilft als PAWNO editor von sa-mp.com


    : Samp (p)ce
    das googlst du mal und ladest es runter , es zeigt dir die codes an und die errors und was du schreiben musst und noch mehr features , viel besser als pawno editor von sa-mp.com:)#



    MFG Fsih

    ich arbeite momentan an einem taxi script :
    das wenn sich mit /taxi ein taxi vor mir spawnt mit ein npc als fahrer und wenn ich mit g einsteige das ich mit einem befehl /goto oder so das ,das fahrzeug mit mir drin sich zu bsn mit dem
    npc als fahrer portet so gesagt ;).


    jetzt die frage wie
    mache cih das , das der wagen mit mir drin sich portet und wie stecke ich den npc als fahrer?


    bin dankbar an alle die mir weiterhlfen können
    MFG Fishtime9

    hallo leute wieder:) ,
    ich habe wieder ein Problem und zwar weiss ich nicht wo ich das command ChangeVehicleColor(vehicleid,colorid1,colorid2);
    reinstecke ich habe es mal in einem filterscript und dem command /changecolor reingesteckt aber da hatt es natürlich nicht gefunzt .
    ????
    wo muss ich es reinstecken und wie?
    ich bedanke mich bei jeder hilfe:)
    MFg fishtime9

    C:\Users\Fishtime9\Desktop\asdf\gamemodes\gamemode.pwn(47) : error 017: undefined symbol "RentalCar"
    C:\Users\Fishtime9\Desktop\asdf\gamemodes\gamemode.pwn(47) : warning 215: expression has no effect
    C:\Users\Fishtime9\Desktop\asdf\gamemodes\gamemode.pwn(47) : error 001: expected token: ";", but found "]"
    C:\Users\Fishtime9\Desktop\asdf\gamemodes\gamemode.pwn(47) : error 029: invalid expression, assumed zero
    C:\Users\Fishtime9\Desktop\asdf\gamemodes\gamemode.pwn(47) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    "Error von Compiler"

    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #include <a_samp>


    #if defined FILTERSCRIPT
    //Frakautos, RentalCars//
    new RentalCar[3];



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {


    SetGameModeText("Script by Jeff");
    AddPlayerClass(0,2641.4780,-2003.4609,13.5547,277.4488,0,0,0,0,0,0);
    AddPlayerClass(188,2641.4780,-2003.4609,13.5547,277.4488,0,0,0,0,0,0);
    AddStaticVehicle(438,1794.7643,-1691.0289,13.4912,176.9474,6,76); // auto
    AddStaticVehicle(438,1792.7628,-1690.1895,13.4796,171.0714,6,76); // auto1
    AddStaticVehicle(438,1788.8251,-1690.3092,13.4581,178.9163,6,76); // auto2
    AddStaticVehicle(438,1784.3990,-1690.2249,13.4435,177.9853,6,76); // auto3
    //RentalCars//
    RentalCar[0]=AddStaticVehicle(509,2661.8018,-1997.0348,13.0645,180.6713,61,1);
    RentalCar[1]=AddStaticVehicle(509,2659.7063,-1997.9957,13.0694,180.6290,61,1); // bike 2
    RentalCar[2]=AddStaticVehicle(509,2657.8103,-1997.9082,13.0668,182.1716,61,1); // bike3


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 2641.4780,-2003.4609,13.5547);
    SetPlayerCameraPos(playerid, 2641.4780,-2003.4609,13.5547);
    SetPlayerCameraLookAt(playerid, 2641.4780,-2003.4609,13.5547);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    SetGameModeText("Jeffs-Server [ServerScript made by me]");
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

    // This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT
    #include <a_samp>#define Message_Color 0xFF444499#define SetPlayerMoney#if defined FILTERSCRIPT
    public OnFilterScriptInit(){ print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1;}
    public OnFilterScriptExit(){ return 1;}
    #else
    main(){ print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n");}
    #endif
    public OnGameModeInit(){ // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1;}
    public OnGameModeExit(){ return 1;}
    public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1;}
    public OnPlayerConnect(playerid){ return 1;}
    public OnPlayerDisconnect(playerid, reason){ return 1;}
    public OnPlayerSpawn(playerid){ return 1;}
    public OnPlayerDeath(playerid, killerid, reason){ return 1;}
    public OnVehicleSpawn(vehicleid){ return 1;}
    public OnVehicleDeath(vehicleid, killerid){ return 1;}
    public OnPlayerText(playerid, text[]){ return 1;}
    public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp("/firedone", cmdtext, true, 10) == 0) { SendClientMessage(Playerid,Message_Color,"You helped out the Goverment again thank you ."); SetPlayerMoney(Playerid,Money); return 1; } return 0;}
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ return 1;}
    public OnPlayerExitVehicle(playerid, vehicleid){ return 1;}
    public OnPlayerStateChange(playerid, newstate, oldstate){ return 1;}
    public OnPlayerEnterCheckpoint(playerid){ return 1;}
    public OnPlayerLeaveCheckpoint(playerid){ return 1;}
    public OnPlayerEnterRaceCheckpoint(playerid){ return 1;}
    public OnPlayerLeaveRaceCheckpoint(playerid){ return 1;}
    public OnRconCommand(cmd[]){ return 1;}
    public OnPlayerRequestSpawn(playerid){ return 1;}
    public OnObjectMoved(objectid){ return 1;}
    public OnPlayerObjectMoved(playerid, objectid){ return 1;}
    public OnPlayerPickUpPickup(playerid, pickupid){ return 1;}
    public OnVehicleMod(playerid, vehicleid, componentid){ return 1;}
    public OnVehiclePaintjob(playerid, vehicleid, paintjobid){ return 1;}
    public OnVehicleRespray(playerid, vehicleid, color1, color2){ return 1;}
    public OnPlayerSelectedMenuRow(playerid, row){ return 1;}
    public OnPlayerExitedMenu(playerid){ return 1;}
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid){ return 1;}
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ return 1;}
    public OnRconLoginAttempt(ip[], password[], success){ return 1;}
    public OnPlayerUpdate(playerid){ return 1;}
    public OnPlayerStreamIn(playerid, forplayerid){ return 1;}
    public OnPlayerStreamOut(playerid, forplayerid){ return 1;}
    public OnVehicleStreamIn(vehicleid, forplayerid){ return 1;}
    public OnVehicleStreamOut(vehicleid, forplayerid){ return 1;}
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ return 1;}
    public OnPlayerClickPlayer(playerid, clickedplayerid, source){ return 1;}