Beiträge von [PRT]Zerorapper

    hallo ich habe ein problemundzwar folgendes:
    C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\stunt.pwn(19549) : error 017: undefined symbol "playerid"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.
    hier ist das was ich eingefügt habe:
    public SomeTimer()
    {
    new keys, updown, leftright;
    new currentveh;
    new Float:vehx, Float:vehy, Float:vehz;
    currentveh = GetPlayerVehicleID(playerid);
    GetVehiclePos(currentveh, vehx, vehy, vehz);
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerKeys(playerid, keys, updown, leftright);


    if(updown == KEY_SUBMISSION)
    {
    SetVehiclePos(currentveh, vehx, vehy, vehz+5);
    }
    }
    }
    }
    warum kennt er playerid nicht ???

    hallo ich habe ein dini system gescriptet aber ich kann es nicht testen weil immer wenn ich connecten will geht sampserver aus ?(
    naja hier ist es ich wollt eigentlich in den showroom hochladen aber so gehts ja auch xD


    #include <a_samp>


    #include <dini>


    #include <a_players>


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" ZSaver by Zerorapper ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    new Float:X, Float:Y, Float:Z;
    new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
    new file[64]; format(file,sizeof(file),"ZSaver/%s.txt",name);
    X = dini_Float(file, "F_X");
    Y = dini_Float(file, "F_Y");
    Z = dini_Float(file, "F_Z");
    if(dini_Exists(file))
    {
    SetPlayerPos(playerid, X, Y, Z);
    SetPlayerFacingAngle(playerid,dini_Int(file,"Guckrichtung"));
    GivePlayerMoney(playerid,dini_Int(file,"Geld"));
    SetPlayerScore(playerid,dini_Int(file,"Score"));
    SetPlayerSkin(playerid,dini_Int(file,"Skin"));
    SetPlayerHealth(playerid,dini_Int(file,"Leben"));
    SetPlayerArmour(playerid,dini_Int(file,"Schusssichere Weste"));
    SetPlayerInterior(playerid,dini_Int(file,"Interior"));
    }
    else
    {
    dini_Create(file);
    }
    return 1;
    }


    public OnPlayerDisconnect(playerid)
    {
    new Float:X, Float:Y, Float:Z;
    new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
    new file[64]; format(file,sizeof(file),"ZSaver/%s.txt",name);
    GetPlayerPos(playerid, X, Y, Z);
    dini_IntSet(file,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(file,"Score",GetPlayerScore(playerid));
    dini_IntSet(file,"Skin",GetPlayerSkin(playerid));
    dini_IntSet(file,"Leben",GetPlayerHealth(playerid));
    dini_IntSet(file,"Schusssichere Weste",GetPlayerArmour(playerid));
    dini_IntSet(file,"Interior",GetPlayerInterior(playerid));
    dini_IntSet(file,"Guckrichtung",GetPlayerFacingAngle(playerid));
    dini_FloatSet(file, "F_X", X);
    dini_FloatSet(file, "F_Y", Y);
    dini_FloatSet(file, "F_Z", Z);
    return 1;
    }


    aber warum geht es nicht ??

    naja aber wenn du ein filterscript für npc's machen willst brauchst du a_npc welches aber nur geht wen a_samp nicht an ist und wen a_samp nicht an ist geht das filterscript nicht

    Hallo
    ich habe ein problem undzwar bei meinem NPC ...
    er spawnt steht dan aber dumm rum >:(
    auserdem kann er nicht einloggen weil pawno die include irgendwie nicht lädt:
    [hide]
    PAWN Code:
    #define FILTERSCRIPT


    #include <a_samp>


    #include <a_npc>


    forward OnNPCSpawn();


    #if defined FILTERSCRIPT


    new rustlerrustler;


    public OnFilterScriptInit()
    {
    print("Rustlerpilot By Zerorapper Loaded.");
    ConnectNPC("Terrorist","rustler");
    rustlerrustler = CreateVehicle(476, 0.0, 0.0, 5.0, 0.0, 6, 0, 5000);
    return 1;
    }


    public OnFilterScriptExit()
    {
    print("Rustlerpilot Unloaded.");
    return 1;
    }


    #else
    #endif


    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Terrorist", true))
    {
    PutPlayerInVehicle(playerid, rustlerrustler, 0);
    }
    return 1;
    }
    return 1;
    }



    public OnNPCSpawn()
    {
    SendCommand("/plogin -entfernt-");
    return 1;
    }
    Errors:
    C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\filterscripts\Rustler.pwn(48) : error 017: undefined symbol "SendCommand"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.
    [/hide]

    nein ich habe keinen gf
    und bei mir im gamemode unter OnPlayerSpawn das hier:
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "rustler", true))
    {
    PutPlayerInVehicle(playerid, rustlerrustler, 0);
    }
    }


    errors kommen keine und warning auch nicht