bitte hilfe

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
  • Kann mir jemand bei diesem Script helfen???: ?( :?:
    #include <a_samp>


    #define FILTERSCRIPT


    #if defined FILTERSCRIPT


    new RandomMSG[][] =
    {
    "LS Turf Wars commands",
    "/help | /turfhelp | /cmds | /credits",
    "/pm <playerid> <message> | /tpm <message>",
    "/buyweapon <weaponid> <amount> | /list | /list2",
    "/givecash <playerid> <amount> | /bounties"
    "/hitman <playerid> <amount>",
    "/sellpoints <amount>",
    "/report <playerid> <reason> | /me <message>",
    "/tp - for Teleports",
    "car - carselecter",*/
    };


    forward SendMSG();



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("LS Turf Wars Ino Fitlerscript by gtaturke54");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnGameModeInit()
    {


    SetTimer("SendMSG",600000,1);


    return 1;
    }


    public SendMSG()
    {
    SendClientMessageToAll(0x33CCFFAA, RandomMSG[random(sizeof(RandomMSG))]);
    return 1;
    }
    #endif



    Das ist das Problem: ?(

    Code
    C:\Users\*Zensiert*\Desktop\info.pwn(14) : error 001: expected token: "}", but found "-string-"
    C:\Users\*Zensiert*\Desktop\info.pwn(19) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    
    
    2 Errors.



    Kann mir jemand helfen???

    Gruß Nate

  • :cursing: sieht fast aus wie meins ...........................



    Zitat

    "car - carselecter",*/

    mach das */ weg.


    Zitat

    "/givecash <playerid> <amount> | /bounties"

    mach da ein , dahinter.

    „Auge um Auge - und die ganze Welt wird blind sein.“
    - Mahatma Gandhi

  • Jetzt steht das hier bei mir: ?(

    Code
    C:\Users\*Zensiert*\Desktop\info.pwn(19) : error 029: invalid expression, assumed zero
    C:\Users\*Zensiert*\Desktop\info.pwn(19) : error 008: must be a constant expression; assumed zero
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    
    
    2 Errors.


    So sieht es bei mir aus:
    #include <a_samp>


    #define FILTERSCRIPT


    #if defined FILTERSCRIPT


    new RandomMSG[][] =
    {
    "LS Turf Wars commands",
    "/help | /turfhelp | /cmds | /credits",
    "/pm <playerid> <message> | /tpm <message>",
    "/buyweapon <weaponid> <amount> | /list | /list2",
    "/givecash <playerid> <amount> | /bounties",
    "/hitman <playerid> <amount>",
    "/sellpoints <amount>",
    "/report <playerid> <reason> | /me <message>",
    "/tp - for Teleports",
    "car - carselecter",
    };


    forward SendMSG();



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("LS Turf Wars Ino Fitlerscript by gtaturke54");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnGameModeInit()
    {


    SetTimer("SendMSG",600000,1);


    return 1;
    }


    public SendMSG()
    {
    SendClientMessageToAll(0x33CCFFAA, RandomMSG[random(sizeof(RandomMSG))]);
    return 1;
    }
    #endif

    Gruß Nate

  • habe es jetzt so:
    #include <a_samp>
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT



    new RandomMSG[][] =
    {
    "LS Turf Wars commands",
    "/help | /turfhelp | /cmds | /credits",
    "/pm <playerid> <message> | /tpm <message>",
    "/buyweapon <weaponid> <amount> | /list | /list2",
    "/givecash <playerid> <amount> | /bounties",
    "/hitman <playerid> <amount>",
    "/sellpoints <amount>",
    "/report <playerid> <reason> | /me <message>",
    "/tp - for Teleports",
    "/car - carselecter",
    forward SendMSG();



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("LS Turf Wars Info Fitlerscript by gtaturke54");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnGameModeInit()
    {


    SetTimer("SendMSG",600000,10);


    return 1;
    }


    public SendMSG()
    {
    SendClientMessageToAll(0x33CCFFAA, RandomMSG[random(sizeof(RandomMSG))]);
    return 1;
    }
    #endif


    das hier:

    Code
    C:\Users\*Zensiert*\Desktop\info.pwn(18) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664  Copyright (c) 1997-2006, ITB CompuPhase
    
    
    
    
    1 Error.


    Edit:
    habe den error bei google sprachtools überstetzt:
    ungültigen Ausdruck, davon auszugehen, Null

    Gruß Nate

  • Hier so gehts:

    #include <a_samp>
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT


    new RandomMSG[][] =
    {
    "LS Turf Wars commands",
    "/help | /turfhelp | /cmds | /credits",
    "/pm <playerid> <message> | /tpm <message>",
    "/buyweapon <weaponid> <amount> | /list | /list2",
    "/givecash <playerid> <amount> | /bounties",
    "/hitman <playerid> <amount>",
    "/sellpoints <amount>",
    "/report <playerid> <reason> | /me <message>",
    "/tp - for Teleports",
    "/car - carselecter"
    };
    forward SendMSG();


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("LS Turf Wars Info Fitlerscript by gtaturke54");
    print("--------------------------------------\n");
    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }
    public OnGameModeInit()
    {
    SetTimer("SendMSG",600000,10);
    return 1;
    }
    public SendMSG()
    {
    SendClientMessageToAll(0x33CCFFAA, RandomMSG[random(sizeof(RandomMSG))]);
    return 1;
    }
    #endif