Beiträge von netmario

    Bekomme folgenden Error.
    C:\Users\Mario\SAMP Server\Server\netmario_rl9.pwn(2257) : warning 235: public function lacks forward declaration (symbol "IsALCNcar")
    C:\Users\Mario\SAMP Server\Server\netmario_rl9.pwn(8287) : error 032: array index out of bounds (variable "LCNcars")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Hier wie ichs gemacht habe.
    forward IsALCNCar(carid);
    forward IsALCN(playerid);
    new LCNcars[9];
    public IsALCN(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5)
    {
    return 1;
    }
    else if(leader==5)
    {
    return 1;
    }
    }
    return 0;
    }
    public IsALCNcar(carid)
    {
    for(new i = 0; i < sizeof(LCNcars); i++)
    {
    if(carid == LCNcars[i])
    {
    return 1;
    }
    }
    return 0;
    }
    else if(IsALCNcar(newcar))
    {
    if(IsALCN(playerid)) { }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Mitglied der Fraktion");
    }
    }
    LCNcars[0]=AddStaticVehicleEx(560,740.4262,-1433.2690,13.2445,90.0107,0,0,60000); // lcnsultan
    LCNcars[1]=AddStaticVehicleEx(560,733.2061,-1433.2158,13.2364,90.1290,0,0,60000); // lcnsultan2
    LCNcars[2]=AddStaticVehicleEx(560,725.9951,-1433.2606,13.2442,90.2204,0,0,60000); // lcnsultan3
    LCNcars[3]=AddStaticVehicleEx(409,717.5446,-1439.1659,13.3379,90.5002,0,0,60000); // lcnstretch
    LCNcars[4]=AddStaticVehicleEx(487,727.6314,-1461.8264,22.3830,269.2892,0,0,60000); // lcnmaverick
    LCNcars[5]=AddStaticVehicleEx(493,728.3962,-1495.3110,0.0135,179.4374,0,0,60000); // lcnboot
    LCNcars[6]=AddStaticVehicleEx(493,733.3099,-1495.6786,-0.0255,181.2684,0,0,60000); // lcnboot2
    LCNcars[7]=AddStaticVehicleEx(522,700.2109,-1434.3295,13.1098,229.9541,0,0,60000); // lcnnrg
    LCNcars[8]=AddStaticVehicleEx(522,699.6315,-1434.9854,13.1088,228.2652,0,0,60000); // lcnnrg2
    LCNcars[9]=AddStaticVehicleEx(522,701.9128,-1432.9661,13.1089,229.1888,0,0,60000); // lcnnrg3