Beiträge von xivo

    Blackfox, hat doch nicht geklappt, hat jemand sonst noch ne lösung ?


    Also ich steige ins Taxi ein, bekomme die Meldung ich habe keine "Zugriffsrechte für das Fahrzeug"
    obwohl ich dem Team angehöre :


    if(IsATaxiCar(vehicleid))
    {
    if(IsATaxiFahrer(playerid) && !ispassenger)
    {
    SendClientMessage(playerid,COLOR_GREY," Du hast kein Zugriff auf dieses Fahrzeug!");
    TogglePlayerControllable(playerid, 0);
    TogglePlayerControllable(playerid, 1);
    }
    }


    public IsATaxiFahrer(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member == 10)
    {
    return 1;
    }
    else if(leader == 10)
    {
    return 1;
    }
    }
    return 0;
    }


    IsATaxiCar(vehicleid)
    {
    for(new i = 0;i<sizeof(Taxi);i++)
    {
    if(Taxi[i] == vehicleid)return true;
    }
    return false;
    }

    Hey leutz, ich habe mal ne frage.


    Also, wenn ich in ein Taxi car einsteige, steht dort "Kein Zugriff zu diesem Fahrzeug");


    Aber eigentlich sollte er mich reinlassen, da ich ja der Fraktion 10 = Taxi angehöre.


    Weiß jemand wo es dran liegen kann ?


    if(IsATaxiCar(vehicleid))
    {
    if(Taxi[0] || Taxi[1] || Taxi[2] || Taxi[3] || Taxi[4] || Taxi[5] || Taxi[6] || Taxi[7] || Taxi[8] || Taxi[9] || Taxi[10] || Taxi[11] || Taxi[12] || Taxi[13] || Taxi[14])
    {
    if(pLeader == 10 || pMember == 10)
    {
    SendClientMessage(playerid,COLOR_GREY," Du hast kein Zugriff auf dieses Fahrzeug!");
    TogglePlayerControllable(playerid, 0);
    TogglePlayerControllable(playerid, 1);
    }
    }
    }


    public IsATaxiFahrer(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member == 10)
    {
    return 1;
    }
    else if(leader == 10)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsATaxiCar(carid)
    {
    if(Taxi[carid])
    {
    return 1;
    }
    return 0;
    }

    Keine ahnung, ich glaube das Passwort wird in der .ini verschlüsselt. bin mir aber nicht sicher, wen du das änderst, dan musste du das richtige passwort finden, den in der ini ist ja nur die verschlüsselung, bin mir aber nicht sicher !

    Moin leute, ich verstehe die Aussage nicht, wieso sollte ich playerid definieren ?


    if (i == 160)
    {
    TextDrawShowForPlayer(playerid,Text:Test999);
    }
    else
    {
    TextDrawHideForPlayer(playerid,Text:Test999);


    C:\DOKUME~1\Daniel\Desktop\Samps\pawno\German.pwn(821) : error 017: undefined symbol "playerid"
    C:\DOKUME~1\Daniel\Desktop\Samps\pawno\German.pwn(825) : error 017: undefined symbol "playerid"

    Hey leutz, ich habe mal ne Frage.


    Ich habe 6 Textdraws, diese werden angezeigt wen ich in ein Auto einsteige,
    nun will ich machen, das ich im Script ein tacho laufen habe, und wen die
    Geschwindigkeit dan ca auf 20 ist, soll das Textdraw mit der 20 aufleuchten,
    weiß einer zufällig wie ich das machen kann ?


    Wäre ziemlich dankbar ;)


    new Text:Tachorand1;
    new Text:Tachorand2;
    new Text:Tachorand3;
    new Text:Tachorand4;
    new Text:Tachorand5;
    new Text:Tachorand6;


    definiert sind sie so ;)


    Edit : 27.03.10 - 15:28


    Hat keiner eine Ahnung ? ;) Wäre ziemlich cool wen es jemand wüsste.


    Also ich habe Textdraws, und die sollen bei einer bestimmten geschwindigkeit aufleuchten ? wie mache ich das ? ;) Wäre ziemlich dankbar

    ShowPlayerDialog(playerid,DIALOG_SKINAUSWAHL,DIALOG_STYLE_LIST,"Skin Auswahl 1/7","Ha","Weiter","Abbrechen");


    Was ist hier dran falsch ?


    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : error 001: expected token: ";", but found ")"
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(224) : fatal error 107: too many error messages on one line

    Edit ich habs einfach verkleinert und in 2 Dialoge gepackt.


    Aber trozdem folgendes :



    ShowPlayerDialog(playerid,DIALOG_SKINAUSWAHL,DIALOG_STYLE_LIST,"Skin Auswahl 1/7","0\n1\n2\n7\n9 Weiblich\n10 Weiblich\n11 Weiblich\n12 Weiblich\n13 Weiblich\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30","Weiter","Abbrechen");


    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : error 001: expected token: ";", but found ")"
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(226) : fatal error 107: too many error messages on one line


    Und ich versteh nicht wieso der 2x )) haben will. Also kannst wohl nicht an der länge liegen ?

    Nun habe ich wieder einen Dialog Bug ;)


    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : warning 215: expression has no effect
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : error 001: expected token: ";", but found ")"
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Daniel\Desktop\SAMPSE~1\pawno\GERMAN~1.PWN(225) : fatal error 107: too many error messages on one line


    ShowPlayerDialog(playerid,DIALOG_SKINAUSWAHL,DIALOG_STYLE_LIST,"Skin Auswahl 1/6","0\n1\n2\n7\n9 Weiblich\n10 Weiblich\n11 Weiblich\n \
    12 Weiblich\n13 Weiblich\n14\n15\n16\n17\n18\n19\n20\n \21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31 Weiblich\n32\n33\n34\n35\n36\n37\n \ /// <------- GEMEINT !!!!
    38 Weiblich\n39 Weiblich\n40 Weiblich\n41 Weiblich\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53 Weiblich\n54 Weiblich\n55 Weiblich","Weiter","Abbrechen");