Beiträge von LoLi

    if (strcmp(cmd, "/torauf", true) ==0 ) //339
    { //340
    MoveObject(971, 1016.828918, -921.834167, 33.521324); //341
    SetTimer("TorX",500,1); //342
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!"); //343


    return 1; //345
    }

    Nur noch zwei errors. Komm zombie.modder, du schaffst das :D


    hilfe wäre nicht schlecht^^ *BFX anguck* :D



    D:\GTASAN~2\GAMEMO~1\UF.pwn(338) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(344) : error 010: invalid function or declaration


    338


    if (strcmp("/torauf", cmdtext, true, 10) == 0) //339



    344
    return 1; //345

    Die gleichen errors.


    Vllt. poste ich die Funktion vor 337:



    if(strcmp("/del", cmdtext, true, 10) == 0)
    if(IsPlayerAdmin(playerid))


    {


    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, "Cleared!");

    Zitat

    D:\GTASAN~2\GAMEMO~1\UF.pwn(337) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(339) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(345) : error 010: invalid function or declaration



    3 Erros.


    return 1; //337
    } //338
    if (strcmp("/torauf", cmdtext, true, 10) == 0) //339
    { //340
    MoveObject(971, 1016.828918, -921.834167, 33.521324); //341
    SetTimer("TorX",500,1); //342
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!"); //343
    } //344
    return 1; //345

    Ich habe paar Fehler beseitigt. Kommen nur noch 3:


    D:\GTASAN~2\GAMEMO~1\UF.pwn(4) : warning 201: redefinition of constant/macro (symbol "COLOR")
    D:\GTASAN~2\GAMEMO~1\UF.pwn(5) : warning 201: redefinition of constant/macro (symbol "COLOR")
    D:\GTASAN~2\GAMEMO~1\UF.pwn(54) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(60) : warning 202: number of arguments does not match definition
    D:\GTASAN~2\GAMEMO~1\UF.pwn(181) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(203) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(234) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(337) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(339) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(346) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(411) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(428) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(173) : warning 204: symbol is assigned a value that is never used: "TorX"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.


    337 und bisschen drum rum (return 1; ist Zeile 337)
    339 ist auch drin


    }


    return 1;


    if (strcmp("/torauf", cmdtext, true, 10) == 0) //399




    346:
    return 1;


    Bitte hilft mir ;( ;( ;( ;(

    if (strcmp("/torauf", cmdtext, true, 10) == 0)
    {
    MoveObject(971, 1016.828918, -921.834167, 33.521324);
    SetTimer("Tor",500,1);
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!");


    }
    return 1;
    }



    Zuletzt war ich da daran.


    (Achja: Der CMD funktioniert nit.)

    Ich möchte erstmal nur dass die errors behoben werden.


    Den ganzen Script möcht ich nich zeigen :|






    351
    public OnPlayerInfoChange(playerid)



    356
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)


    es geht halt immerso weiter, sind alles publics!!
    :cursing: :cursing: :cursing: :cursing: :cursing: :cursing:

    Neues Problem:



    D:\GTASAN~2\GAMEMO~1\UF.pwn(171) : error 076: syntax error in the expression, or invalid function call




    Tor = CreateObject(971, 1016.828918, -921.834167, 41.521324, 0.0000, 0.0000, 186.9528);


    new Tor;
    forward Tor();

    Vllt. musste was im Script ergänzen?


    Einsteins Object streamer z.B will dass ich unter OnGameModeInit, OnGameModeExit und noch iwo was einfüge, lies die Anleitung durch^^

    Also, ich habe ein paar Fragen, ich habe die Suchfunktion benutzt, alles un übersichtlich.


    Deswegen möcht ich ein SammelThread erstellen.



    Dieses Thema nützt dazu, die Fragen zu klären, die mit der Struktuirung zu tun haben.


    Regel:


    Zitieren, wenn eine Antwort!



    Die jetztigen Includes und die Funktionen:
    -CreateObject (modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
    -Funktion: Objekte erstellen (ohne Streamer)
    -public: OnGameModeInit


    -AddStaticVehicle (modelid, Float:spawn_x, Float:spawn_y,Float:spawn_z, Float:angle, color1, color2)
    -Funktion: Cars erstellen (~700)
    -public: OnGameModeInit



    Falls ihr andere wisst, bitte dringend posten.



    MfG


    loli