Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

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? 

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

            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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.