Beiträge von PaaKe™

    also das ist mein befehl


    if (strcmp(cmdtext, "/open1", true)==0){
    SendClientMessage(playerid,0x95000096,"tor geöffnet");
    MoveObject (gate1,2513.05, 1603.01, 3.3, 2.0);
    return 1;
    }


    kann das bitte einer für mich machen mit dem dialog


    das richtige passwortsoll sein: 123x

    hi brauche hilfe bin anfänger im scripten


    ich hab ein tor und ein befehl das dies sich öffnet aber ich hab noch kein register system deswegen kann jeder den befehl nutzen und da brauch ich jetzt hilfe


    wie mach ich das das wenn ich den befehl /torauf (z.B.) eingebe und dann ein Dialog erscheint in dem man das Passwort eingeben kann. Wenn das Passwort richtig ist soll sich das Tor öffnen.

    error 017: undefined symbol "mysql_query"
    error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
    error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
    error 017: undefined symbol "RemoveBuildingForPlayer"


    help wie krieg ich die weg

    Du hast 0 Plugins.
    Downloade dir mal das Streamer Plugin und das sscanf plugin dann sollte es funktionieren.


    Falls es immernoch nicht funktioniert brauchste vllt noch ein anderes plugin!


    MfG

    if(!strcmp(cmdtext,"/flashon",true))
    {
    new sirene[4];
    sirene[0] = CreateObject(19419,0,0,-1000,0,0,0,100);
    sirene[1] = CreateObject(19419,0,0,-1000,0,0,0,100);
    sirene[2] = CreateObject(19419,0,0,-1000,0,0,0,100);
    sirene[3] = CreateObject(19419,0,0,-1000,0,0,0,100);


    AttachObjectToVehicle(sirene[0], GetPlayerVehicleID(playerid), 0.000000,0.150000,0.749999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(sirene[1], GetPlayerVehicleID(playerid), 1.575000,0.524999,-1.125000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(sirene[2], GetPlayerVehicleID(playerid), -1.575000,0.599999,-1.125000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(sirene[3], GetPlayerVehicleID(playerid), 0.000000,2.775001,-0.974999,0.000000,0.000000,0.000000);
    return 1;
    }


    if(!strcmp(cmdtext,"/flashoff",true))
    {
    DestroyObject(sirene);
    return 1;
    }


    errors:
    error 017: undefined symbol "sirene"

    so ?
    if(!strcmp(cmdtext,"/flashon",true))
    {
    new myobject [4] = CreateObject(19419,0,0,-1000,0,0,0,100);
    AttachObjectToVehicle(myobject[0], GetPlayerVehicleID(playerid), 0.000000,0.150000,0.749999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(myobject[1], GetPlayerVehicleID(playerid), 1.575000,0.524999,-1.125000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(myobject[2], GetPlayerVehicleID(playerid), -1.575000,0.599999,-1.125000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(myobject[3], GetPlayerVehicleID(playerid), 0.000000,2.775001,-0.974999,0.000000,0.000000,0.000000);
    return 1;
    }


    krieg ich aber nen error:
    error 008: must be a constant expression; assumed zero

    soll ich das also so machen ?
    if(!strcmp(cmdtext,"/flashon",true))
    {
    new myobject = CreateObject(19419,0,0,-1000,0,0,0,100);
    new myobject = CreateObject(19419,0,0,-1000,0,0,0,100);
    new myobject = CreateObject(19419,0,0,-1000,0,0,0,100);
    new myobject = CreateObject(19419,0,0,-1000,0,0,0,100);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.000000,0.150000,0.749999,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 1.575000,0.524999,-1.125000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), -1.575000,0.599999,-1.125000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 0.000000,2.775001,-0.974999,0.000000,0.000000,0.000000);
    return 1;
    }


    dann krieg ich aber errors


    error 021: symbol already defined: "myobject"