Beiträge von staNleY.

    Ich habe versucht ein Bus system zumachen, nun den..


    Die haltestellen streicken..


    //Linie 2 Haltestellen
    CreateObjectToStream(1257, 790.47, -1350.52, 13.67, 0.00, 0.00, 179.66);
    CreateObjectToStream(1257, 1128.96, -1413.82, 13.73, 0.00, 0.00, 269.15);
    CreateObjectToStream(1257, 1142.88, -1619.14, 14.17, 0.00, 0.00, 179.76);
    CreateObjectToStream(1257, 1814.63, -1920.21, 13.67, 0.00, 0.00, 179.47);
    CreateObjectToStream(1257, 1983.54, -2174.20, 13.84, 0.00, 0.00, 269.41);
    CreateObjectToStream(1257, 2250.41, -2227.13, 13.69, 0.00, 0.00, 225.47);
    CreateObjectToStream(1257, 1436.90, -2287.23, 13.84, 0.00, 0.00, 0.00);
    CreateObjectToStream(1257, 1431.78, -936.30, 36.53, 0.00, 0.00, 84.70);


    Fehlermeldung:



    (16513) : error 017: undefined symbol "CreateObjectToStream"
    (16514) : error 017: undefined symbol "CreateObjectToStream"
    (16515) : error 017: undefined symbol "CreateObjectToStream"
    (16516) : error 017: undefined symbol "CreateObjectToStream"
    (16517) : error 017: undefined symbol "CreateObjectToStream"
    (16518) : error 017: undefined symbol "CreateObjectToStream"
    (16519) : error 017: undefined symbol "CreateObjectToStream"
    (16520) : error 017: undefined symbol "CreateObjectToStream"


    und wie kann ich im Bus eine Textdraw erscheinen lassen, welche Linie das ist?


    Script:



    if(strcmp(cmdtext,"/linie", true) == 0)
    {
    if(PlayerInfo[playerid][pJob] == 14)
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(tmpcar) == 431 || GetVehicleModel(tmpcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
    {
    ShowPlayerDialog(playerid,DIALOG_Buslinien,DIALOG_STYLE_LIST,"Buslinien","LS-Stadtlinie 1\nLS-Stadtlinie 2\nSchließen","Wählen","");
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Sie müssen in einem Bus sein.");
    }
    }
    }

    Und wie kann ich einstellen, das im Checkpoint ein Countdown von 10 Runtergezählt wird?


    Bitte umhilfe..^^

    ^Hab mal was getestet,



    if(killerid != INVALID_PLAYER_ID)
    {
    new wanted = GetPlayerWantedLevel(killerid) + 1;
    new str[145];
    GetPlayerName(playerid, str, MAX_PLAYER_NAME);
    WantedPoints[killerid] += 1;
    SetPlayerCriminal(playerid,255, "Vorraussichtlich Mord");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    format(str, sizeof(str), "[Info] %s wird mit %d Wanteds gesucht.", str, wanted);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pTeam] == 1) //Anpassen, zu deiner Polizei-Abfrage
    {
    SendClientMessage(playerid, 0xFF0000FF, str);
    }
    }
    }


    Der jenige der stirbt bekommt die Wanteds wieso?

    Moment.


    Nur bei /suspect eigentlich


    e/



    Function SetPlayerCriminal(playerid,declare,reason[])
    {
    if(IsPlayerConnected(playerid))
    {
    PlayerInfo[playerid][pCrimes] += 1;
    new turned[MAX_PLAYER_NAME];
    new turner[MAX_PLAYER_NAME];
    new turnmes[128];
    new wantedmes[128];
    new wlevel;
    strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255);
    GetPlayerName(playerid, turned, sizeof(turned));
    if (declare == 255)
    {
    format(turner, sizeof(turner), "Unbekannt");
    strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
    }
    else
    {
    if(IsPlayerConnected(declare))
    {
    GetPlayerName(declare, turner, sizeof(turner));
    strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
    strmid(PlayerCrime[declare][pBplayer], turned, 0, strlen(turned), 255);
    strmid(PlayerCrime[declare][pAccusing], reason, 0, strlen(reason), 255);
    }
    }
    WantedLevel[playerid]++;
    wlevel = WantedLevel[playerid];
    format(turnmes, sizeof(turnmes), "Du hast ein Verbrechen begangen ( %s ). Zeuge: %s.",reason,turner);
    SendClientMessage(playerid, 0xFF6347AA, turnmes);
    format(wantedmes, sizeof(wantedmes), "Momentanes Wantedlevel: %d", wlevel);
    SendClientMessage(playerid, COLOR_YELLOW, wantedmes);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsACop(i))
    {
    if(IsPlayerInRangeOfPoint(playerid, PlayerExplosionX[1]-random(10), PlayerExplosionY[1]-random(10), PlayerExplosionX[1]+random(10), PlayerExplosionY[1]+random(10)))
    {
    format(cbjstore, sizeof(turnmes), "HQ: Alle Einheiten: Reporter: %s",turner);
    SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
    format(cbjstore, sizeof(turnmes), "HQ: Verbrechen: %s, Gesuchter: %s",reason,turned);
    SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
    }
    else
    {
    format(cbjstore, sizeof(turnmes), "HQ: Alle Einheiten: Reporter: %s",turner);
    SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
    format(cbjstore, sizeof(turnmes), "HQ: Verbrechen: %s, Gesuchter: Unbekannt du hast ihn nicht gesehen",reason);
    SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
    }
    }
    }
    }
    }
    }


    Habe das gefunden aber irgendwie geht das net^^


    error 017: undefined symbol "SpielerInfo"
    warning 215: expression has no effect
    error 001: expected token: ";", but found "]"
    error 029: invalid expression, assumed zero
    fatal error 107: too many error messages on one line

    Ein problem...


    bei dem


    • public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
    • {
    • if(issuerid != INVALID_PLAYER_ID)
    • {
    • if(hitSound[issuerid])
    • {
    • //Ton für issuerid spielen
    • }
    • }
    • return 1;
    • }

    da zeigt an der ersten zeile btw bei public ein error an


    (5404) : error 025: function heading differs from prototype