Jump to content
  • 0

Problema bug playeri


Umbra

Question

Hai salut, deci am o problema cu care ma confrunt de cand scriptez. La un timer de o secunda de exemplu am foreach(new i : Player), daca fac o variabila gen TimeOnTurf++, sa creasca daca un player e pe turf, daca nu sunt toti playerii din acel war pe turf nu creste la niciunul si tot asa, sau daca am optiune de FPS, la amandoi le arata aceleasi FPS. O rezolvare? 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

            if(WarInfo[wTime] > 2)
            {
                foreach(new j : Players)
                {
                    if(IsPlayerInTurf(j, i))
                    {
                        TimeOnTurf[j]++;
                    }
                }
            }

asta, la un timer de 1 secunda. si i-ul este: for(new i = 1; i < sizeof(Turfs); i++)

Edited by Umbra
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.