Problem mit MoveObjects

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
  • HEy kann jetzt objecte erstellen aber keine moveobjects^^ hier mal :
    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(986,1588.491699,-1637.783203,14.141568,0.000000,0.000000,0.000000);


    print("\n--------------------------------------");
    print(" Made by KJ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdo", true) == 0){
    MoveObject(y_gate,986,1596.682129,-1637.546143,14.429418,0.000000,0.000000,0.000000);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdc", true) == 0){
    MoveObject(y_gate,986,1588.427490,-1637.588867,14.185813,0.000000,0.000000,0.000000);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    return 0;
    }
    hier die 6 warnings
    C:\Users\kevin\Desktop\Pdgate.pwn(32) : warning 202: number of arguments does not match definition
    C:\Users\kevin\Desktop\Pdgate.pwn(32) : warning 202: number of arguments does not match definition
    C:\Users\kevin\Desktop\Pdgate.pwn(32) : warning 202: number of arguments does not match definition
    C:\Users\kevin\Desktop\Pdgate.pwn(37) : warning 202: number of arguments does not match definition
    C:\Users\kevin\Desktop\Pdgate.pwn(37) : warning 202: number of arguments does not match definition
    C:\Users\kevin\Desktop\Pdgate.pwn(37) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Warnings.

    » Inaktiv als Scripter
    » Youtuber mit Herz
    » ExComBle


    » Ihr wollt auf die krasseste Halloween Party? Schreibt mir ;)

  • if (strcmp(cmdtext, "/pdo", true) == 0){
    MoveObject(y_gate,1596.682129,-1637.546143,14.429418,3.0);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdc", true) == 0){
    MoveObject(y_gate,1588.427490,-1637.588867,14.185813,3.0);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }


    das anstatt das andere^^

  • ty aber nun ein error
    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(986,1588.491699,-1637.783203,14.141568,0.000000,0.000000,0.000000);


    print("\n--------------------------------------");
    print(" Made by KJ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdo", true) == 0){
    MoveObject(y_gate,1596.682129,-1637.546143,14.429418,3.0);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdc", true) == 0){
    MoveObject(y_gate,1588.427490,-1637.588867,14.185813,3.0);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    der error
    C:\Users\kevin\Desktop\Pdgate.pwn(41) : error 030: compound statement not closed at the end of file (started at line 31)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    » Inaktiv als Scripter
    » Youtuber mit Herz
    » ExComBle


    » Ihr wollt auf die krasseste Halloween Party? Schreibt mir ;)

  • #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(986,1588.491699,-1637.783203,14.141568,0.000000,0.000000,0.000000);


    print("\n--------------------------------------");
    print(" Made by KJ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdo", true) == 0){
    MoveObject(y_gate,1596.682129,-1637.546143,14.429418,3.0);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdc", true) == 0){
    MoveObject(y_gate,1588.427490,-1637.588867,14.185813,3.0);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    return 0;
    }


    hier nochma das ganze

  • Und was is an dem befehl falsch da passiert auch nix
    keine warnings keine errors und keine wirkung^^ kann das jemand lösen??
    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(987,2774.185059,-2411.726074,12.721318,4.700000,0.000000,0.000000);


    print("\n--------------------------------------");
    print(" Made by KJ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/amo", true) == 0){
    MoveObject(y_gate,987,2774.101318,-2399.566406,12.627557);
    SendClientMessage(playerid, COLOR_YELLOW,"Betreten Verboten");
    return 1;
    }
    if (strcmp(cmdtext, "/amc", true) == 0){
    MoveObject(y_gate,987,2774.007813,-2411.756592,12.641885);
    SendClientMessage(playerid, COLOR_YELLOW,"Betreten Verboten");
    return 1;
    }
    return 0;
    }

    » Inaktiv als Scripter
    » Youtuber mit Herz
    » ExComBle


    » Ihr wollt auf die krasseste Halloween Party? Schreibt mir ;)

  • -,- #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(987,2774.185059,-2411.726074,12.721318,4.700000,0.000000,0.000000);


    print("\n--------------------------------------");
    print(" Made by KJ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/amo", true) == 0){
    MoveObject(y_gate,2774.101318,-2399.566406,12.627557,4););
    SendClientMessage(playerid, COLOR_YELLOW,"Betreten Verboten");
    return 1;
    }
    if (strcmp(cmdtext, "/amc", true) == 0){
    MoveObject(y_gate,2774.101318,-2399.566406,12.627557,4););
    SendClientMessage(playerid, COLOR_YELLOW,"Betreten Verboten");
    return 1;
    }
    return 0;
    }
    so richtig oder aber zrotzdem
    C:\Users\kevin\Desktop\Samp server\filterscripts\Adminbase.pwn(32) : error 029: invalid expression, assumed zero
    C:\Users\kevin\Desktop\Samp server\filterscripts\Adminbase.pwn(32) : warning 215: expression has no effect
    C:\Users\kevin\Desktop\Samp server\filterscripts\Adminbase.pwn(37) : error 029: invalid expression, assumed zero
    C:\Users\kevin\Desktop\Samp server\filterscripts\Adminbase.pwn(37) : warning 215: expression has no effect
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    » Inaktiv als Scripter
    » Youtuber mit Herz
    » ExComBle


    » Ihr wollt auf die krasseste Halloween Party? Schreibt mir ;)

  • Hir haste es Fehler Frei :thumbup:


    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(987,2774.185059,-2411.726074,12.721318,4.700000,0.000000,0.000000);


    print("\n--------------------------------------");
    print(" Made by KJ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/amo", true) == 0){
    MoveObject(y_gate,2774.101318,-2399.566406,12.627557,4);
    SendClientMessage(playerid, COLOR_YELLOW,"Betreten Verboten");
    return 1;
    }
    if (strcmp(cmdtext, "/amc", true) == 0){
    MoveObject(y_gate,2774.101318,-2399.566406,12.627557,4);
    SendClientMessage(playerid, COLOR_YELLOW,"Betreten Verboten");
    return 1;
    }
    return 0;
    }