Errors

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Ich habe ein kleines Problem grig die hir iwie net weg ist ein FS


    C:\Users\samorokov\Desktop\H_Rent.pwn(115) : error 029: invalid expression, assumed zero
    C:\Users\samorokov\Desktop\H_Rent.pwn(115 -- 116) : warning 215: expression has no effect
    C:\Users\samorokov\Desktop\H_Rent.pwn(116) : error 001: expected token: ";", but found "public"
    C:\Users\samorokov\Desktop\H_Rent.pwn(116) : error 029: invalid expression, assumed zero
    C:\Users\samorokov\Desktop\H_Rent.pwn(116) : 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.



    ZEILEN:


    }
    public OnPlayerConnect(playerid)

    Neu mit SA:MP angefangen :D

  • Wäre gut, wenn du auch die Zeilen davor und danach postest, weil man nur anhand dieser zwei Zeilen keine Fehler sehen kann...

    mfg RedDragon 8)


    Was ist GFKD?


    Ein revolutionärer Clan, dessen Eröffnung kurz bevorsteht.
    Mehr Informationen folgen bald.

  • ehm sorry hir^^
    new H_Bikes[7][256]=
    {
    {481,50,"BMX"}, // BMX
    {462,300,"Fraggio"}, // Fraggio
    {468,450,"Sanchez"}, // Sanchez
    {461,600,"PCJ-600"}, // PCJ-600
    {463,650,"Freeway"}, // Freeway
    {522,800,"NRG 500"}, // NRG 500
    {586,1000,"Wayfarer"} // Wayfarer
    };


    public OnFilterScriptInit()
    {
    SetTimer("H_CarCountDown",60000,1);
    H_Pickup=CreatePickup(1210,1,H_RentPlaceX,H_RentPlaceY,H_RentPlaceZ);
    for(new i = 0;i<MAX_PLAYERS;i++)
    }
    public OnPlayerConnect(playerid)
    {
    SetPlayerMapIcon(playerid, 98, H_RentPlaceX, H_RentPlaceY, H_RentPlaceZ, 55, 0);
    H_PlayerCount[playerid]=0;
    return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
    DestroyVehicle(H_PlayerCar[playerid]);
    H_PlayerCarID[playerid]=999;
    H_PlayerCar[playerid]=0;
    H_PlayerCount[playerid]=0;
    H_ChoosenColor[playerid]=0;
    H_CarLocked[playerid]=true;
    H_RentedCars-=1;
    return 1;
    }

    Neu mit SA:MP angefangen :D

  • Immer noch gleiche Errors


    C:\Users\samorokov\Desktop\H_Rent.pwn(114 -- 115) : error 017: undefined symbol "playerid"
    C:\Users\samorokov\Desktop\H_Rent.pwn(114 -- 115) : warning 215: expression has no effect
    C:\Users\samorokov\Desktop\H_Rent.pwn(115) : error 001: expected token: ")", but found ";"
    C:\Users\samorokov\Desktop\H_Rent.pwn(115) : error 036: empty statement
    C:\Users\samorokov\Desktop\H_Rent.pwn(115) : 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.



    ZEILE:
    new H_Bikes[7][256]=
    {
    {481,50,"BMX"}, // BMX
    {462,300,"Fraggio"}, // Fraggio
    {468,450,"Sanchez"}, // Sanchez
    {461,600,"PCJ-600"}, // PCJ-600
    {463,650,"Freeway"}, // Freeway
    {522,800,"NRG 500"}, // NRG 500
    {586,1000,"Wayfarer"} // Wayfarer
    };


    public OnFilterScriptInit()
    {
    SetTimer("H_CarCountDown",60000,1);
    H_Pickup=CreatePickup(1210,1,H_RentPlaceX,H_RentPlaceY,H_RentPlaceZ);
    for(new i = 0;i<MAX_PLAYERS;i+++
    SetPlayerMapIcon(playerid, 98, H_RentPlaceX, H_RentPlaceY, H_RentPlaceZ, 55, 0);
    H_PlayerCount[playerid]=0;
    return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
    DestroyVehicle(H_PlayerCar[playerid]);
    H_PlayerCarID[playerid]=999;
    H_PlayerCar[playerid]=0;
    H_PlayerCount[playerid]=0;
    H_ChoosenColor[playerid]=0;
    H_CarLocked[playerid]=true;
    H_RentedCars-=1;
    return 1;
    }
    public OnPlayerSpawn(playerid)
    {
    H_PlayerCount[playerid]=H_RentMinutes;
    H_CarLocked[playerid]=H_LockEingabe;
    return 1;
    }

    Neu mit SA:MP angefangen :D

  • sry es war so
    for(new i = 0;i<MAX_PLAYERS;i++)


    Sind jetz nur noch 2 Errors die hir


    C:\Users\samorokov\Desktop\H_Rent.pwn(115) : error 017: undefined symbol "playerid"
    C:\Users\samorokov\Desktop\H_Rent.pwn(116) : error 017: undefined symbol "playerid"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    Neu mit SA:MP angefangen :D


  • public OnFilterScriptInit()
    {
    SetTimer("H_CarCountDown",60000,1);
    H_Pickup=CreatePickup(1210,1,H_RentPlaceX,H_RentPlaceY,H_RentPlaceZ);
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    SetPlayerMapIcon(i, 98, H_RentPlaceX, H_RentPlaceY, H_RentPlaceZ, 55, 0);
    H_PlayerCount[i]=0;
    }
    return 1;
    }