Beiträge von Niran

    Ihr mit ICQ und so höhö
    Man kanns doch kurz editieren oder so..
    Denn ich bin Anfänger, denn in den Script was du hier hast haste return1; und so vergessen...soweit kann ich auch noch denken =P

    Ok moment ich probiers ma
    So die Registersystem.pwn und die .amx kommt dann in den filterscript Ordner?


    Zu den Waffen:
    Also sind die Waffen von GTA automatisch schon im Script oder muss man noch die Waffen die es in gta gibt erst i-wo einfügen?

    Zum Registersystem:


    Also ich muss in mein Script das hier reinpacken oder?
    Das mit der Server Config hab ich verstanden =P



    #include <NAMEDESFS>


    So die Registersystem.pwn und die .amx kommt dann in den filterscript Ordner?
    Und dann sollte es gehen?

    Ich habe die Sufu benutzt, aber hab nur "Waffen speichern" oder "Waffen Anticheat" gefunden....


    Prob wegen den Waffen:
    Also mein Problem ist mein Server hat keine Waffen...hätte jemand vlt ein FS oder nen Script oder was auch immer?


    Prob mit Registersystem:
    FILTERSCRIPT Login und Register System


    Ja wenn ich das in den Filterscript Ordner packe, was muss ich denn im Script einfügen damit das System funktioniert?..
    Denn wenn ich die beiden dateien in den filterscript ordner packe passiert nichts..höhö

    Danke hat geklappt, aber nun noch ein Problem...


    Das Datum wird perfekt angezeigt, aber die Uhrzeit steht nirgendswo...bitte helfen

    Nun hab ich 2 Warnings:
    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(79) : warning 235: public function lacks forward declaration (symbol "weather")
    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(84) : warning 235: public function lacks forward declaration (symbol "time")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Warnings.


    Warte ich poste mal mein hole Script (ist sowieso leer, fange grade neu an =P):



    #include <a_samp>


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


    #if defined FILTERSCRIPT


    forward time();
    forward weather();


    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()


    {
    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)
    {
    time();
    return 1;
    }



    public weather()
    {
    SetWeather(random(18));
    }


    public time()
    {


    new Text:Clock;
    new hour,minute,second;
    new string[256];
    new string2[256];


    new Text:Datum;
    new day,month,year;
    getdate(day,month,year);


    gettime(hour,minute,second);
    if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
    else {format(string,25,"%d:%d",hour,minute);}


    if (day <= 9){format(string2,25,"0%d.%d.%d",year,month,day);}
    else if (month <= 9 && day >= 9) {format(string2,25,"%d.0%d.%d",year,month,day);}
    else {format(string2,25,"%d.%d.%d",year,month,day);}


    if (hour == 0){SetWorldTime(0);}
    if (hour == 1){SetWorldTime(1);}
    if (hour == 2){SetWorldTime(2);}
    if (hour == 3){SetWorldTime(3);}
    if (hour == 4){SetWorldTime(4);}
    if (hour == 5){SetWorldTime(5);}
    if (hour == 6){SetWorldTime(6);}
    if (hour == 7){SetWorldTime(7);}
    if (hour == 8){SetWorldTime(8);}
    if (hour == 9){SetWorldTime(9);}
    if (hour == 10){SetWorldTime(10);}
    if (hour == 11){SetWorldTime(11);}
    if (hour == 12){SetWorldTime(12);}
    if (hour == 13){SetWorldTime(13);}
    if (hour == 14){SetWorldTime(14);}
    if (hour == 15){SetWorldTime(15);}
    if (hour == 16){SetWorldTime(16);}
    if (hour == 17){SetWorldTime(17);}
    if (hour == 18){SetWorldTime(18);}
    if (hour == 19){SetWorldTime(19);}
    if (hour == 20){SetWorldTime(20);}
    if (hour == 21){SetWorldTime(21);}
    if (hour == 22){SetWorldTime(22);}
    if (hour == 23){SetWorldTime(23);}
    if (hour == 24){SetWorldTime(24);}


    TextDrawHideForAll(Clock);
    Clock=TextDrawCreate(549,24,string);
    TextDrawLetterSize(Clock,0.55,2);
    TextDrawFont(Clock,3);
    TextDrawBackgroundColor(Clock,0x000000AA);
    TextDrawSetOutline(Clock,2);
    TextDrawShowForAll(Clock);
    SetTimer("time",30000,0);
    SetTimer("weather",11000000,true);


    TextDrawHideForAll(Datum);
    Datum=TextDrawCreate(500,3,string2);
    TextDrawLetterSize(Datum,0.55,2);
    TextDrawFont(Datum,3);
    TextDrawBackgroundColor(Datum,0x000000AA);
    TextDrawSetOutline(Datum,2);
    TextDrawShowForAll(Datum);


    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("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    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;
    }

    Hallo ich habe das hier versucht zu machen (Nicht von mir sondern von: N!ck), aber habe Errors bekommen...
    Alles von hier etc. Uhrzeit


    Zuerst erstmal das Script



    forward time();
    forward weather();


    public OnPlayerSpawn(playerid)
    {
    time();
    return 1;
    }



    public weather()
    {
    SetWeather(random(18));
    }


    public time()
    {


    new Text:Clock;
    new hour,minute,second;
    new string[256];
    new string2[256];


    new Text:Datum;
    new day,month,year;
    getdate(day,month,year);


    gettime(hour,minute,second);
    if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
    else {format(string,25,"%d:%d",hour,minute);}


    if (day <= 9){format(string2,25,"0%d.%d.%d",year,month,day);}
    else if (month <= 9 && day >= 9) {format(string2,25,"%d.0%d.%d",year,month,day);}
    else {format(string2,25,"%d.%d.%d",year,month,day);}


    if (hour == 0){SetWorldTime(0);}
    if (hour == 1){SetWorldTime(1);}
    if (hour == 2){SetWorldTime(2);}
    if (hour == 3){SetWorldTime(3);}
    if (hour == 4){SetWorldTime(4);}
    if (hour == 5){SetWorldTime(5);}
    if (hour == 6){SetWorldTime(6);}
    if (hour == 7){SetWorldTime(7);}
    if (hour == 8){SetWorldTime(8);}
    if (hour == 9){SetWorldTime(9);}
    if (hour == 10){SetWorldTime(10);}
    if (hour == 11){SetWorldTime(11);}
    if (hour == 12){SetWorldTime(12);}
    if (hour == 13){SetWorldTime(13);}
    if (hour == 14){SetWorldTime(14);}
    if (hour == 15){SetWorldTime(15);}
    if (hour == 16){SetWorldTime(16);}
    if (hour == 17){SetWorldTime(17);}
    if (hour == 18){SetWorldTime(18);}
    if (hour == 19){SetWorldTime(19);}
    if (hour == 20){SetWorldTime(20);}
    if (hour == 21){SetWorldTime(21);}
    if (hour == 22){SetWorldTime(22);}
    if (hour == 23){SetWorldTime(23);}
    if (hour == 24){SetWorldTime(24);}


    TextDrawHideForAll(Clock);
    Clock=TextDrawCreate(549,24,string);
    TextDrawLetterSize(Clock,0.55,2);
    TextDrawFont(Clock,3);
    TextDrawBackgroundColor(Clock,0x000000AA);
    TextDrawSetOutline(Clock,2);
    TextDrawShowForAll(Clock);
    SetTimer("time",30000,0);
    SetTimer("weather",11000000,true);


    TextDrawHideForAll(Datum);
    Datum=TextDrawCreate(500,3,string2);
    TextDrawLetterSize(Datum,0.55,2);
    TextDrawFont(Datum,3);
    TextDrawBackgroundColor(Datum,0x000000AA);
    TextDrawSetOutline(Datum,2);
    TextDrawShowForAll(Datum);


    return 1;
    }


    Und hier die Errors:


    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(184) : error 021: symbol already defined: "OnPlayerSpawn"
    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(190) : warning 235: public function lacks forward declaration (symbol "weather")
    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(195) : warning 235: public function lacks forward declaration (symbol "time")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Der will auch noch alles in Deutsch..möp


    Vlt noch ein Server?
    Und auch noch 25 Player dazu?..


    Wie sandman schon sagte..benutz ma google , aber GF ist net auf deutsch


    man..

    on N!ck benutze bekomme ich diese Errors:(Mache Non-GF)


    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(184) : error 021: symbol already defined: "OnPlayerSpawn"
    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(190) : warning 235: public function lacks forward declaration (symbol "weather")
    D:\PROGRA~1\GTASA-~1\DERSER~1\Server.pwn(195) : warning 235: public function lacks forward declaration (symbol "time")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    FatJoe habe Errors:


    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(38) : error 017: undefined symbol "SPClock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(39) : warning 217: loose indentation
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(39) : error 017: undefined symbol "SPClock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(40) : error 017: undefined symbol "SPClock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(41) : error 017: undefined symbol "SPClock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(43) : warning 217: loose indentation
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(68) : error 017: undefined symbol "SPClock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(69) : warning 217: loose indentation
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(74) : error 017: undefined symbol "SPClock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(75) : warning 217: loose indentation
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(189) : warning 235: public function lacks forward declaration (symbol "settime")
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(196) : error 017: undefined symbol "SPClock"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.



    PS:gtaturke dein FS da hat auch net geklappt..

    Hallo ich habe in diesem Thread mal geschaut: (sorry ich weiß nicht wie ich das hier im Forum wie im quellcode zeigen lassen kann..-.-


    Reale Zeit & Datum


    So hab das von Chakuza eingefügt, aber nun kommen diese Errors:


    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(41) : error 017: undefined symbol "Clock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(42) : error 017: undefined symbol "Clock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(43) : error 017: undefined symbol "Clock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(44) : error 017: undefined symbol "Clock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(45) : error 017: undefined symbol "Clock"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(47) : error 017: undefined symbol "Date"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(48) : error 017: undefined symbol "Date"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(49) : error 017: undefined symbol "Date"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(50) : error 017: undefined symbol "Date"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(51) : error 017: undefined symbol "Date"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(56) : error 055: start of function body without function header
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(59) : error 010: invalid function or declaration
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(98) : error 029: invalid expression, assumed zero
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(98) : warning 215: expression has no effect
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(98) : error 001: expected token: ";", but found ")"
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(98) : error 029: invalid expression, assumed zero
    D:\PROGRA~1\GTASA-~1\GAMEMO~1\Server.pwn(98) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    16 Errors.



    So hier das was ich dort eingefügt habe:


    also gaaaaanz oben(unter #if defined FILTERSCRIPT) habe ich:


    forward time2();
    new Text:Clock;
    new Text:Date;


    dann hab ich bei public OnGameModeInit():
    (das rote gehört nicht dazu,habs schon drinne gehabt)


    {


    Clock=TextDrawCreate(549,24, "00:00");
    TextDrawLetterSize(Clock,0.55,2);
    TextDrawFont(Clock,3);
    TextDrawBackgroundColor(Clock,0x000000AA);
    TextDrawSetOutline(Clock,2);


    Date=TextDrawCreate(500,3, "01.04.2009");
    TextDrawLetterSize(Date,0.55,2);
    TextDrawFont(Date,3);
    TextDrawBackgroundColor(Date,0x000000AA);
    TextDrawSetOutline(Date,2);


    SetTimer("time2", 60000, 1);
    }


    {
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    und ganz unten:


    public time2()
    {
    new hour,minute,second;
    new string[256];
    new string2[256];


    new Text:Datum;
    new day,month,year;
    getdate(day,month,year);


    gettime(hour,minute,second);
    if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
    else {format(string,25,"%d:%d",hour,minute);}


    if (day <= 9){format(string2,25,"0%d.%d.%d",year,month,day);}
    else if (month <= 9 && day >= 9) {format(string2,25,"%d.0%d.%d",year,month,day);}
    else {format(string2,25,"%d.%d.%d",year,month,day);}


    if (hour == 0){SetWorldTime(0);}
    if (hour == 1){SetWorldTime(1);}
    if (hour == 2){SetWorldTime(2);}
    if (hour == 3){SetWorldTime(3);}
    if (hour == 4){SetWorldTime(4);}
    if (hour == 5){SetWorldTime(5);}
    if (hour == 6){SetWorldTime(6);}
    if (hour == 7){SetWorldTime(7);}
    if (hour == 8){SetWorldTime(8);}
    if (hour == 9){SetWorldTime(9);}
    if (hour == 10){SetWorldTime(10);}
    if (hour == 11){SetWorldTime(11);}
    if (hour == 12){SetWorldTime(12);}
    if (hour == 13){SetWorldTime(13);}
    if (hour == 14){SetWorldTime(14);}
    if (hour == 15){SetWorldTime(15);}
    if (hour == 16){SetWorldTime(16);}
    if (hour == 17){SetWorldTime(17);}
    if (hour == 18){SetWorldTime(18);}
    if (hour == 19){SetWorldTime(19);}
    if (hour == 20){SetWorldTime(20);}
    if (hour == 21){SetWorldTime(21);}
    if (hour == 22){SetWorldTime(22);}
    if (hour == 23){SetWorldTime(23);}
    if (hour == 24){SetWorldTime(24);}


    TextDrawHideForAll(Clock);
    Clock=TextDrawCreate(549,24,string);
    TextDrawLetterSize(Clock,0.55,2);
    TextDrawFont(Clock,3);
    TextDrawBackgroundColor(Clock,0x000000AA);
    TextDrawSetOutline(Clock,2);
    TextDrawShowForAll(Clock);
    SetTimer("time2",30000,0);
    SetTimer("weather",11000000,true);


    TextDrawHideForAll(Datum);
    Datum=TextDrawCreate(500,3,string2);
    TextDrawLetterSize(Datum,0.55,2);
    TextDrawFont(Datum,3);
    TextDrawBackgroundColor(Datum,0x000000AA);
    TextDrawSetOutline(Datum,2);
    TextDrawShowForAll(Datum);


    return 1;
    }