Jump to content

Question

Posted

Έφτιαξα αυτόν τον κώδικα και δεν ξέρω γιατί δεν εμφανίζει στους GM το Html, ενώστους άλλους το δέιχνει κανονικά.

 

        if (Config.SERVER_NEWS)
       {
           String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");
           if (activeChar.getAccessLevel() > 0 )
           {
               serverNews = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");
           }
           if (serverNews != null)
               sendPacket(new NpcHtmlMessage(1, serverNews));
       }

14 answers to this question

Recommended Posts

  • 0
Posted

    if (Config.SERVER_NEWS)

        {

            String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");

            if (activeChar.getAccessLevel() > 0 )

            {

                serverNews = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");

            }

            if (serverNews != null)

                sendPacket(new NpcHtmlMessage(1, serverNews));

        }

 

Γιατι το διχνει μονο σε οσους εχουν 0 access level ειναι απλο.

  • 0
Posted

OFFTOPIC: όταν είναι κάτι σε code δεν μπορείς να βάλεις χρώματα.

 

ONTOPIC: θέλω να βλέπει όποιος έχει access παραπάνω από 0 διαφορετικό html από ότι όσοι έχουν 0. Ο κώδικας είναι σωστός και το compile γίνεται κανονικά. Όταν μπαίνω με simple char δείχνει κανονικά το html αλλά όταν μπαίνω με GM δεν δείχνει καν το παράθυρο.

  • 0
Posted

OFFTOPIC: όταν είναι κάτι σε code δεν μπορείς να βάλεις χρώματα.

 

ONTOPIC: θέλω να βλέπει όποιος έχει access παραπάνω από 0 διαφορετικό html από ότι όσοι έχουν 0. Ο κώδικας είναι σωστός και το compile γίνεται κανονικά. Όταν μπαίνω με simple char δείχνει κανονικά το html αλλά όταν μπαίνω με GM δεν δείχνει καν το παράθυρο.

ΕΝοω οτι το 0 να το κανεις 100 ( οσο ειναι τα access) γιαυτο το εχω κοκκινο
  • 0
Posted

ΕΝοω οτι το 0 να το κανεις 100 ( οσο ειναι τα access) γιαυτο το εχω κοκκινο

activeChar.getAccessLevel() > 0

 

αν το κάνω 100 θα πρέπει να αλλάξω και τον τελεστή και εγώ θέλω να το βλέπει και πχ ο event manager που έχει accesslevel80...

  • 0
Posted

activeChar.getAccessLevel() > 0

 

αν το κάνω 100 θα πρέπει να αλλάξω και τον τελεστή...

Πο δεν παιζει να βγαλω ακρια με σενα καντο οπως σου ειπα αμα θες καταλαβε αυτο ειναι αλλα επιδει εισαι λιγο χαζουλης δεν παιζει να βγαλεις ευκολα ακρια.
  • 0
Posted

Πο δεν παιζει να βγαλω ακρια με σενα καντο οπως σου ειπα αμα θες καταλαβε αυτο ειναι αλλα επιδει εισαι λιγο χαζουλης δεν παιζει να βγαλεις ευκολα ακρια.

Ρε φίλε τι δεν καταλαβαίνεις δηλαδή; και που είμαι χαζός;

 

Έχω 1 βρόγχο που ρώταει αν ο παίχτης έχει access πάνω από 0 ( δηλαδή 1,2,3, ... ,+οο ) να του δείχνει το GM html.

Εσύ μου λές να πάω να βάλω στον βρόχο να ρωτάει αν ο παίχτης έχει access πάνω απο 100 ( δηλαδή 101,102,103, ... , +οο ) και σου απαντάω ότι δεν θέλω γιατί έχω πχ. gm με access 80 και με 85 και με 90. Στην τελική ποιος είναι ο χαζούλης;

  • 0
Posted

Ρε φίλε τι δεν καταλαβαίνεις δηλαδή; και που είμαι χαζός;

 

Έχω 1 βρόγχο που ρώταει αν ο παίχτης έχει access πάνω από 0 ( δηλαδή 1,2,3, ... ,+οο ) να του δείχνει το GM html.

Εσύ μου λές να πάω να βάλω στον βρόχο να ρωτάει αν ο παίχτης έχει access πάνω απο 100 ( δηλαδή 101,102,103, ... , +οο ) και σου απαντάω ότι δεν θέλω γιατί έχω πχ. gm με access 80 και με 85 και με 90. Στην τελική ποιος είναι ο χαζούλης;

ε περνα 3 φορες αυτο τον κωδικο

Π.χ

πρωτο για αcc 0 meta 20,meta 40 k paei legontas

  • 0
Posted

ε περνα 3 φορες αυτο τον κωδικο

Π.χ

πρωτο για αcc 0 meta 20,meta 40 k paei legontas

Το πρόβλημα δεν είναι ότι δεν μπαίνει μέσα στον βρόγχο. Αν δεν έμπαινε θα μου έδειχνε το κανονικό ( servnews )...

Το πρόβλημα είναι ότι δεν ΕΜΦΑΝΙΖΕΙ το servGmNews.html.

 

 

 

ΥΓ: άστο γάμησετο καλύτερα. Δεν μου φένεται να μπορείς να με βοηθήσεις...

ΥΓ: more code=fewer performance=coder can't understand the code.

  • 0
Posted

if (Config.SERVER_NEWS)
       {
           if (activeChar.getAccessLevel() > 0 )
           {
               String newsGM = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");
               if (newsGM != null)
                   sendPacket(new NpcHtmlMessage(1, newsGM));
           }
           else
           {
               String newsNormal = HtmCache.getInstance().getHtm("data/html/servnews.htm");
               if (newsNormal != null)
                   sendPacket(new NpcHtmlMessage(1, newsNormal));
           }
       }

 

try.

 

ΥΓ: Μια παρακληση.. Αν δεν εχετε ιδεα για το τι λετε, μην πετατε μαλακιες. Ευχαριστω πολυ =)

  • 0
Posted

if (Config.SERVER_NEWS)
       {
           if (activeChar.getAccessLevel() > 0 )
           {
               String newsGM = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");
               if (newsGM != null)
                   sendPacket(new NpcHtmlMessage(1, newsGM));
           }
           else
           {
               String newsNormal = HtmCache.getInstance().getHtm("data/html/servnews.htm");
               if (newsNormal != null)
                   sendPacket(new NpcHtmlMessage(1, newsNormal));
           }
       }

 

try.

 

ΥΓ: Μια παρακληση.. Αν δεν εχετε ιδεα για το τι λετε, μην πετατε μαλακιες. Ευχαριστω πολυ =)

το έχω δοκιμάσει κι έτσι. πάλι τα ίδια έκανε. Τέσπα thanks για το help.

  • 0
Posted

το έχω δοκιμάσει κι έτσι. πάλι τα ίδια έκανε. Τέσπα thanks για το help.

 

Δοκιμασε να γραψεις ΑΚΡΙΒΩΣ οτι σου εδωσα. Παρατηρησα ενα βασικο λαθος στον κωδικα που εδωσες, και καταλαβα τι δεν εχεις καταλαβει. Ξαναδοκιμασε να βαλεις ΑΚΡΙΒΩΣ οτι σου εδωσα και πες μας το αποτελεσμα. Μην ξεχασεις φυσικα να δημιουργησεις το νεο htm για τους GMs.

  • 0
Posted

Δοκιμασε να γραψεις ΑΚΡΙΒΩΣ οτι σου εδωσα. Παρατηρησα ενα βασικο λαθος στον κωδικα που εδωσες, και καταλαβα τι δεν εχεις καταλαβει. Ξαναδοκιμασε να βαλεις ΑΚΡΙΒΩΣ οτι σου εδωσα και πες μας το αποτελεσμα. Μην ξεχασεις φυσικα να δημιουργησεις το νεο htm για τους GMs.

σωστός. λειτούργησε έτσι.

 

Το δοκίμασα έτσι και δεν καταλαβαίνω τι είχα γράψει λάθος ( με 2 sting name κτλπ )... Thanks!

  • 0
Posted
if (Config.SERVER_NEWS)

       {

           String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");

           if (activeChar.getAccessLevel() > 0 )

           {

               serverNews = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");

           }

           if (serverNews != null)

               sendPacket(new NpcHtmlMessage(1, serverNews));

       }

 

if (Config.SERVER_NEWS)

       {

           if (activeChar.getAccessLevel() > 0 )

           {

               String newsGM = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");

               if (newsGM != null)

                   sendPacket(new NpcHtmlMessage(1, newsGM));

           }

           else

           {

               String newsNormal = HtmCache.getInstance().getHtm("data/html/servnews.htm");

               if (newsNormal != null)

                   sendPacket(new NpcHtmlMessage(1, newsNormal));

           }

       }

 

Θα σε αφησω να καταλαβεις μονος το λαθος σου ;~) Θα σε βοηθησει να μην το επαναλαβεις την επομενη φορα. Καλη επιτυχια.

 

ΥΓ: Οσα υπογραμμισα ειναι ενα μερος του προβληματος.. Υπαρχει κι αλλο ενα, πολυ βασικοτερο. Αυτο το αφηνω σε εσενα.

  • 0
Posted

σωστός. λειτούργησε έτσι.

 

Το δοκίμασα έτσι και δεν καταλαβαίνω τι είχα γράψει λάθος ( με 2 sting name κτλπ )... Thanks!

Guest
This topic is now closed to further replies.


  • Posts

    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Wts adena 1kk = 10$  discord - GODDARDSHOP 
    • Thanks for the feedback! We’ve actually rented their infrastructure to ensure a high-quality gaming experience (We couldn't find any better files out there). Developer @FixerRay will also be there to assist us 🙂
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock