Warum geht mein [pwn] [/pwn] nicht?


  • Liebes Forum.
    Wenn das ein Falscher bereich ist für mein Problem tut es mir sehr leit.


    Also wenn ich einen Code poste, geht das ganz normal so wie hier:



    public SyncTime()
    {
    new string[128];
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    {
    format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour);
    PayDay();
    BroadCast(COLOR_WHITE,string);
    ghour = tmphour;
    if (realtime)
    {
    SetWorldTime(tmphour);
    }
    format(string, sizeof(string), "~y~Lotto Zeit! ~n~~w~Waehle deine Nummer mit ~n~~p~/lotto 1-80 ~g~($100) ~n~~r~Preis: ~g~$%d", Jackpot);
    if(TD3D == 1)
    {
    KillTimer(HideTD4Timer);
    TextDrawHideForAll(TD3);
    TextDrawSetString(TD3, string);
    TextDrawShowForAll(TD3);
    HideTD4Timer = SetTimer("HideTD4", 8500, false);
    }
    else
    {
    TextDrawSetString(TD3, string);
    TextDrawShowForAll(TD3);
    TD3D = 1;
    HideTD4Timer = SetTimer("HideTD4", 8500, false);
    }
    SetTimer("StartLotto",20000,false);
    }
    }


    Aber warum sieht das mit pwn so aus? :
    public SyncTime(){ new string[128]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); if ((tmphour > ghour) || (tmphour == 0 && ghour == 23)) { format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour); PayDay(); BroadCast(COLOR_WHITE,string); ghour = tmphour; if (realtime) { SetWorldTime(tmphour); } format(string, sizeof(string), "~y~Lotto Zeit! ~n~~w~Waehle deine Nummer mit ~n~~p~/lotto 1-80 ~g~($100) ~n~~r~Preis: ~g~$%d", Jackpot); if(TD3D == 1) { KillTimer(HideTD4Timer); TextDrawHideForAll(TD3); TextDrawSetString(TD3, string); TextDrawShowForAll(TD3); HideTD4Timer = SetTimer("HideTD4", 8500, false); } else { TextDrawSetString(TD3, string); TextDrawShowForAll(TD3); TD3D = 1; HideTD4Timer = SetTimer("HideTD4", 8500, false); } SetTimer("StartLotto",20000,false); }}


    Hoffe ihr könnt mir helfen,
    LG.


    //edit : Korrektur im Code.

  • Darstellung von BBCodes Aktivieren ist an. Ohne sieht das so aus :




    public SyncTime(){ new string[128]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); if ((tmphour > ghour) || (tmphour == 0 && ghour == 23)) { format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour); PayDay(); BroadCast(COLOR_WHITE,string); ghour = tmphour; if (realtime) { SetWorldTime(tmphour); } format(string, sizeof(string), "~y~Lotto Zeit! ~n~~w~Waehle deine Nummer mit ~n~~p~/lotto 1-80 ~g~($100) ~n~~r~Preis: ~g~$%d", Jackpot); if(TD3D == 1) { KillTimer(HideTD4Timer); TextDrawHideForAll(TD3); TextDrawSetString(TD3, string); TextDrawShowForAll(TD3); HideTD4Timer = SetTimer("HideTD4", 8500, false); } else { TextDrawSetString(TD3, string); TextDrawShowForAll(TD3); TD3D = 1; HideTD4Timer = SetTimer("HideTD4", 8500, false); } SetTimer("StartLotto",20000,false); }}


    //edit: Musels Tipp :


    public SyncTime(){ new string[128]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); if ((tmphour > ghour) || (tmphour == 0 && ghour == 23)) { format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour); PayDay(); BroadCast(COLOR_WHITE,string); ghour = tmphour; if (realtime) { SetWorldTime(tmphour); } format(string, sizeof(string), "~y~Lotto Zeit! ~n~~w~Waehle deine Nummer mit ~n~~p~/lotto 1-80 ~g~($100) ~n~~r~Preis: ~g~$%d", Jackpot); if(TD3D == 1) { KillTimer(HideTD4Timer); TextDrawHideForAll(TD3); TextDrawSetString(TD3, string); TextDrawShowForAll(TD3); HideTD4Timer = SetTimer("HideTD4", 8500, false); } else { TextDrawSetString(TD3, string); TextDrawShowForAll(TD3); TD3D = 1; HideTD4Timer = SetTimer("HideTD4", 8500, false); } SetTimer("StartLotto",20000,false); }}


  • public SyncTime()
    {
    new string[128];
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    {
    format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour);
    PayDay();
    BroadCast(COLOR_WHITE,string);
    ghour = tmphour;
    if (realtime)
    {
    SetWorldTime(tmphour);
    }
    format(string, sizeof(string), "~y~Lotto Zeit! ~n~~w~Waehle deine Nummer mit ~n~~p~/lotto 1-80 ~g~($100) ~n~~r~Preis: ~g~$%d", Jackpot);
    if(TD3D == 1)
    {
    KillTimer(HideTD4Timer);
    TextDrawHideForAll(TD3);
    TextDrawSetString(TD3, string);
    TextDrawShowForAll(TD3);
    HideTD4Timer = SetTimer("HideTD4", 8500, false);
    }
    else
    {
    TextDrawSetString(TD3, string);
    TextDrawShowForAll(TD3);
    TD3D = 1;
    HideTD4Timer = SetTimer("HideTD4", 8500, false);
    }
    SetTimer("StartLotto",20000,false);
    }
    }


    //edit : @ Musel, hat geklappt. Danke dir ;)

  • Mhm ich hatte das Problem mal mit Opera, welchen Browser nutzt du?

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski