Beiträge von LiMiTEDʀᴇʟσᴀᴅᴇᴅ

    if(IstSpielerInFraktion(playerid, 1)) //LSPD
    {
    SetPlayerPos(playerid,245.5228,185.6252,1008.1719);
    SetPlayerColor(playerid,Blau);
    SendClientMessage(playerid,Blau,"Du bist als Polizist gespawnt.");
    GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,150); GivePlayerWeapon(playerid,29,250); GivePlayerWeapon(playerid,30,350);
    return 1;
    }


    Warum spawne ich immer am normalen Spawn, und ich bin trotzdem in der Fraktion

    Ich möchte nicht wegen jeder Frage ein Theard erstellen, deswegen frag ich hier drunter:


    if(IstSpielerInFraktion(playerid, 1)) //LSPD
    {
    SetPlayerPos(playerid,245.5228,185.6252,1008.1719);
    SetPlayerColor(playerid,Blau);
    SendClientMessage(playerid,Blau,"Du bist als Polizist gespawnt.");
    GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,150); GivePlayerWeapon(playerid,29,250); GivePlayerWeapon(playerid,30,350);
    return 1;
    }
    irgendwie wenn ich in der Fraktion bin, spawn ich trotzdem nicht da :O
    Warum?

    stock IstSpielerInFraktion(playerid, frakid)
    {
    if(sSpieler[playerid][Fraktion] == frakid) return 1;
    return 0;
    }


    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(2371) : error 017: undefined symbol "Fraktion"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(144) : error 036: empty statement
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(146) : error 017: undefined symbol "y"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(147) : error 017: undefined symbol "SetVehicleParmsEx"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(148) : error 017: undefined symbol "y"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1105) : error 076: syntax error in the expression, or invalid function call
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    for( new y = 0;y<MAX_VEHICLES;y++); //Zeile 144-148
    {
    GetVehicleParamsEx(y,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParmsEx(y,VEHICLE_PARAMS_OFF,lights,alarm,doors,boot,obkjective);
    Motor[y] = false;
    }
    [pwn]ocmd:motor(playerid,params[])
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    new vehicleid = GetPlayerVehicleID; //Zeile 1105
    if(GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510)
    {
    SendClientMessage(playerid,Rot,"Ein Fahrrad besitzt kein Motor. :D");
    Motor[vehicleid] = false;
    }
    else if(Motor[vehicleid] == false)
    {
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,Grün,"Motor gestartet.");
    Motor[vehicleid] = true;
    }
    else
    {
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, Rot,"Motor ausgeschaltet.");
    Motor[vehicleid] = false;
    }
    }
    return 1;
    }[/pwn}

    ocmd:makemember(Playerid,params[])
    {
    new pID,frakid,string[128];
    if(!isPlayerAnAdmin(playerid, 5))return SendClientMessage(playerid, Rot,"Du bist nicht kein Head Admin!");
    if(sscanf(params,"ui",pID,frakid))return SendClientMessage(playerid, Rot,"ERROR: /makemember [ID] [FraktionID]");
    if(!isPlayerAnAdmin(playerid,5))
    {
    SetPVarInt(pID,"Fraktion",frakid);
    format(string,128,"AdmCmd: %s hat %s in die Fraktion %i invitet.",SpielerName(playerid),SpielerName(pID),frakid);
    SendClientMessageToAll(Rot,string);
    SpielerSpeichern(playerid);
    SpielerSpeichern(pID);
    }
    return 1;
    }
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1146) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1146) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1147) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1148) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1151) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(1153) : error 017: undefined symbol "playerid"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    Wieso macht der da playerid error?



    6 Errors.

    //Includes
    #include <a_samp>
    #include <dini>
    #include <ocmd>
    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


    //Defines
    #define function%0(%1) \
    forward%0(%1); \
    public%0(%1)
    Reicht das ?

    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(167) : error 029: invalid expression, assumed zero
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(167) : error 017: undefined symbol "vehicleid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(169) : error 017: undefined symbol "vehicleid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(170) : error 017: undefined symbol "vehicleid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(171) : error 017: undefined symbol "vehicleid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(174) : warning 225: unreachable code
    Unter GameModeInit

    ManualVehicleEngineAndLights();
    for (new i=0; i< MAX_VEHICLES; i++)
    {
    GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[i] = false;
    }
    public OnVehicleSpawn(vehicleid)
    {
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[vehicleid] = false;
    return 1;
    }
    Muss ich " vehicleid " definieren?

    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(151) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(152) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(153) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(154) : error 017: undefined symbol "playerid"
    C:\Users\Dennis\Desktop\Resis Second RealLife\gamemodes\ReSRealLife.pwn(155) : error 017: undefined symbol "playerid"

    RemoveBuildingForPlayer(playerid, 5858, 1214.1484, -913.4453, 43.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 1198.7969, -933.1250, 46.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 1522, 1199.9688, -917.6406, 42.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 6010, 1214.1484, -913.4453, 43.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 5742, 1197.3203, -899.2109, 45.0938, 0.25);

    ocmd:mute(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid,1))
    {
    new pID;
    new reason[64];
    new time;
    if(sscanf(params,"uis",pID,time,reason))return SendClientMessage(playerid,Rot,"ERROR: /mute [ID] [Zeit] [Grund]");
    {
    if(isPlayerAnAdmin(pID,1))
    {
    SendClientMessage(playerid,Rot,"ERROR: Du bist kein Admin.");
    return 1;
    }
    else if(time > 0 && time < 999999)
    {
    new string[128],tmptime = time;
    format(string,sizeof(string),"%s wurde gemutet von %s für %i Minutes. Grund: %s",SpielerName(pID),SpielerName(playerid),tmptime,reason);
    SendClientMessageToAll(Rot,string);
    SendClientMessage(playerid,Grün,"Erfolgreich durchgeführt.");
    SetPVarInt(pID,"Mute",tmptime);
    return 1;
    }
    }
    }
    return 1;
    }
    Immer wenn ich /mute machen und jemanden Muten will, klappt es nicht, dann kommt da Du bist kein Admin aber ich habe Adminrang 5.. :/

    Irgendwie ist da was falsch, immer wenn ich auf den Roller steige kommt da nichts und man kann einfach weiter fahren..
    if(newstate == PLAYER_STATE_DRIVER)
    {
    new Vehicle = GetPlayerVehicleID(playerid);
    if(Vehicle == rentroller1)
    if(Vehicle == rentroller2)
    if(Vehicle == rentroller3)
    {
    SendClientMessage(playerid,Gelb,"Mit /rentroller kannst du diesen Roller mieten, wenn du nicht möchtest, dann /exit.");
    TogglePlayerControllable(playerid,0);
    return 1;
    }
    }
    }

    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    new Vehicle = GetPlayerVehicleID(playerid);
    if(Vehicle == rentroller1)
    if(Vehicle == rentroller2)
    if(Vehicle == rentroller3)
    {
    SetVehicleToRespawn(GetPlayerVehicleID(playerid)); //Respawnt den Rentroller
    }
    return 1;
    }