Beiträge von Fresh_Ice

    Guten Abend ich möchte für ein Filterscript ein kleines Textdraw erstellen das erscheint wenn ich diesen befehl eingebe /legbombe von da an soll es dann 300 Sekunden Runterzählen und danach verschwinden. Nur leider habe ich davon keine Ahnung da ich erst neu angefangen hab mit dem Scripten.
    Wäre nett wenn mir jemand ein Code schicken könnte.
    Ich bedanke mich schon mal im Voraus.
    MFG

    if(strcmp("/nagelband",cmdtext,true)==0)
    {
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))
    return 1;
    ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Nicht im Dienst.");
    AddNagelBand(playerid);
    SendClientMessage(playerid,0xFFFF00FF,"Du hast ein Nagelband der Marke stachelig gelegt.");
    return 1;





    {
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))return ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Nicht im Dienst.");
    RemoveNagelBand(playerid);
    SendClientMessage(playerid,0xFFFF00FF,"Du hast ein Nagelband der Marke stachelig entfernt.");
    }





    if(strcmp("/delallnagelband",cmdtext,true)==0)
    {
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))return ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(PlayerInfo[playerid][Rank]<4)return ErrorMsg(playerid,"Rang zu niedrig.");
    RemoveAllNagelBand();
    SendClientMessage(playerid,0xFFFF00FF,"Du hast alle Nagelbänder der Marken stachelig,runtelpum,krähenkautz entfernt.");
    format(string,sizeof(string),"HQ: %s hat alle Nagelbänder entfernt.",SpielerName(playerid));
    SendClientMessageToAll(MrMonat,string);
    }





    if(strcmp("/sperre",cmdtext,true,10)==0)
    {
    if(!IsPlayerConnected(playerid))return 1;
    if(!DarfPlayerCommand(playerid))return ErrorMsg(playerid,"Du kannst keine Befehle nutzen.");
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))return ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Du bist nicht im Dienst.");
    AddStrassensperre(playerid);
    SendClientMessage(playerid,0x2a77a1AA,"Strassensperre der Markte Schütt errichtet.");
    return 1;
    }







    if(strcmp("/sperre2",cmdtext,true,10)==0)
    {
    if(!IsPlayerConnected(playerid))return 1;
    if(!DarfPlayerCommand(playerid))return ErrorMsg(playerid,"Du kannst keine Befehle nutzen.");
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))return ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Du bist nicht im Dienst.");
    AddStrassensperre2(playerid);
    SendClientMessage(playerid,MrMonat,"Strassensperre der Marke Hütt errichtet.");
    return 1;
    }




    if (strcmp("/delallsperre", cmdtext, true, 10) == 0)
    {
    if(!IsPlayerConnected(playerid))return 1;
    if(!DarfPlayerCommand(playerid))return ErrorMsg(playerid,"Du kannst keine Befehle nutzen.");
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))return ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Du bist nicht im Dienst.");
    if(PlayerInfo[playerid][Rank]<4)return ErrorMsg(playerid,"Rang zu niedrig.");
    RemoveAllStrassensperre();
    format(string,sizeof(string),"HQ: %s hat alle Straßensperren entfernt.",SpielerName(playerid));
    SendClientMessageToAll(MrMonat,string);
    return 1;




    if(strcmp("/delsperre",cmdtext,true,10)==0)
    {
    if(!IsPlayerConnected(playerid))return 1;
    if(!DarfPlayerCommand(playerid))return ErrorMsg(playerid,"Du kannst keine Befehle nutzen.");
    if(!IsPlayerInFrac(playerid,1)&&!IsPlayerInFrac(playerid,2)&&!IsPlayerInFrac(playerid,3)&&!IsPlayerInFrac(playerid,7)&&!IsPlayerInFrac(playerid,24))return ErrorMsg(playerid,"Du bist nicht in der jewaligen Fraktion.");
    if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Du bist nicht im Dienst.");
    RemoveStrassensperre(playerid);
    SendClientMessage(playerid,MrMonat,"Straßensperre abgebaut.");
    return 1;




    return 0;
    }
    stock RemoveRauchsignal(playerid) {
    for(new i = 0; i < sizeof(Rauchsignal); i++) {
    if(Rauchsignal[i][rErstellt] == 1) {
    if(IsPlayerInRangeOfPoint(playerid, 3, Strassensperre[i][StrassensperreX], Strassensperre[i][StrassensperreY], Strassensperre[i][StrassensperreZ])) {
    Rauchsignal[i][rErstellt] = 0;
    Rauchsignal[i][RauchsignalX] = 0.0;
    Rauchsignal[i][RauchsignalY] = 0.0;
    Rauchsignal[i][RauchsignalZ] = 0.0;
    DestroyObject(Rauchsignal[i][ID]);
    return 1;

    Hallo, ich bin noch sehr neu beim Scripten und weiß nicht wieso ich diese 13 Errors bekomme:




    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(36271) : error 047: array sizes do not match, or destination array is too small
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(36317) : error 047: array sizes do not match, or destination array is too small
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41803) : error 017: undefined symbol "AddNagelBand"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41811) : error 017: undefined symbol "RemoveNagelBand"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41818) : error 017: undefined symbol "RemoveAllNagelBand"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41829) : error 017: undefined symbol "AddStrassensperre"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41860) : error 017: undefined symbol "AddStrassensperre2"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41871) : error 017: undefined symbol "RemoveAllStrassensperre"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(41883) : error 017: undefined symbol "RemoveStrassensperre"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(69093) : error 017: undefined symbol "Strassensperre"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\\gamemodes\Script Übung.pwn(69093) : warning 215: expression has no effect
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(69093) : error 001: expected token: ";", but found "]"
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(69093) : error 029: invalid expression, assumed zero
    C:\Users\A\Desktop\Gta samp Scripten\Test Script\gamemodes\Script Übung.pwn(69093) : fatal error 107: too many error messages on one line


    Wie kann ich sie Fixxen?
    Danke om vorraus

    Wenn ich den Server starte kommt das: ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3z, (C)2005-2014 SA-MP Team


    [14:02:33] filterscripts = "" (string)
    [14:02:33]
    [14:02:33] Server Plugins
    [14:02:33] --------------
    [14:02:33] Loading plugin: mysql
    [14:02:33] SA:MP MySQL Plugin v2.1.1 Loaded.
    [14:02:33] Loaded.
    [14:02:33] Loading plugin: sscanf
    [14:02:33]


    [14:02:33] ===============================


    [14:02:33] sscanf plugin loaded.


    [14:02:33] (c) 2009 Alex "Y_Less" Cole


    [14:02:33] 0.3d-R2 500 Players "dnee"


    [14:02:33] ===============================


    [14:02:33] Loaded.
    [14:02:33] Loading plugin: streamer
    [14:02:33] [MySQL] Thread running. Threadsafe: Yes.
    [14:02:33]


    *** Streamer Plugin v2.6.1 by Incognito loaded ***


    [14:02:33] Loaded.
    [14:02:33] Loading plugin: nativechecker
    [14:02:33] Failed.
    [14:02:33] Loaded 3 plugins.


    [14:02:33]
    [14:02:33] Filterscripts
    [14:02:33] ---------------
    [14:02:33] Loaded 0 filterscripts.


    [14:02:33] foreach called
    [14:02:34] [MySQL] Error (0): Failed to connect. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] Lade Gangzonen..
    [14:02:34] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_fetch_int called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] Zone: 0 | 0 | 0.000000 | 0.000000 | 0.000000 | 0.000000
    [14:02:34] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_fetch_int called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).
    [14:02:34] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'localhost' (10061).[14:02:35] Servereinstellungen geladen!
    [14:02:35] Lade Kofferrauminhalte..
    [14:02:39]
    [14:02:39] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    [14:02:39] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    [14:02:39] Scriptversion 1.9
    [14:02:39] ________________________________
    [14:02:39] | |
    [14:02:39] | |
    [14:02:39] | HostName: SOM RolePlay |
    [14:02:39] | Sa-Mp: 0.3x |
    [14:02:39] | GameMode: LosSantos |
    [14:02:39] | MapName: San Andreas |
    [14:02:39] | WebSite: http://www.google.de |
    [14:02:39] | Gm: v1.9 |
    [14:02:39] |________________________________|
    [14:02:39] Number of vehicle models: 75


    Bitte um Hilfe