hilfe benötigt

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
  • Ganz einfach:


    if(strcmp("/destroyme", true, 10) ==0)
    {
    new auto1;
    GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    DestroyVehicle(auto1);
    CreateExplosion(6,10, x, y, z);
    return 1;
    }

    Help dcmd & sscanf to their way to Pawn domination. Read the tutorial below, and use it.
    dcmd & sscanf

  • kk, thx ich versuchs mal xD+


    danke an alle die mir bis jetzt geholfen haben ;)


    MfG:


    Kitarou


    O.O!!:
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(92) : error 010: invalid function or declaration
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(95) : error 021: symbol already defined: "GetPlayerVehicleID"
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(97) : error 021: symbol already defined: "GetPlayerPos"
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(100) : error 010: invalid function or declaration
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(103) : error 010: invalid function or declaration
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(162) : warning 203: symbol is never used: "auto"
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(162) : warning 203: symbol is never used: "auto1"
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(162) : warning 203: symbol is never used: "x"
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(162) : warning 203: symbol is never used: "y"
    E:\Games\Rockstar Games\Grand Theft Auto San Andreas\Server SA MP\filterscripts\Explodeme.pwn(162) : warning 203: symbol is never used: "z"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.
    lol? :S

  • @ Klinsen:


    CreateExplosion(6,10, x, y, z); das muss so aussehen CreateExplosion( x, y, z,6,10);



    Also so bekomme ich keine Errors oder warns:



    /*
    * Created with Visual Pawn 0.1.56
    * User: Maximilian
    * Date: 08.01.2009
    * Time: 20:49
    */


    #pragma tabsize 0
    #include <a_samp>


    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #if defined FILTERSCRIPT


    public OnFilterScriptInit() {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit() {
    return 1;
    }


    #else


    main() {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit() {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit() {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid) {
    return 1;
    }


    public OnPlayerConnect(playerid) {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason) {
    return 1;
    }


    public OnPlayerSpawn(playerid) {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason) {
    return 1;
    }


    public OnVehicleSpawn(vehicleid) {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid) {
    return 1;
    }


    public OnPlayerText(playerid, text[]) {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[]) {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/explodeme", cmdtext, true, 10) == 0)
    {
    new auto;
    GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    DestroyVehicle(auto);
    CreateExplosion(x, y, z,6,10);
    return 1;
    }


    return 0;
    }


    public OnPlayerInfoChange(playerid) {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid) {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate) {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid) {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid) {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid) {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid) {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid) {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid) {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid) {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row) {
    return 1;
    }


    public OnPlayerExitedMenu(playerid) {
    return 1;
    }