Jump to content

vasy

Membru
  • Posts

    196
  • Joined

  • Last visited

    Never

Posts posted by vasy

  1. eu am asa

    [pawn]new  Days, Hours, Minutes, Seconds;[/pawn]

    daca pun asa cum a spus gireada imi da erori

    [pawn]new secunde[MAX_PLAYERS], minute[MAX_PLAYERS], ore[MAX_PLAYERS];[/pawn]

    [pawn]C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(142) : error 033: array must be indexed (variable "Seconds")

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(144) : error 022: must be lvalue (non-constant)

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(144) : warning 215: expression has no effect

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(147) : error 033: array must be indexed (variable "Minutes")

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(149) : error 022: must be lvalue (non-constant)

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(149) : warning 215: expression has no effect

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(152) : error 033: array must be indexed (variable "Hours")

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(154) : error 022: must be lvalue (non-constant)

    C:\Users\KyLLeR\Desktop\JP trucking acf\pawno\include\PPC_MissionsTrucking.inc(154) : warning 215: expression has no effect

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    6 Errors.[/pawn]

    si daca las asa cum am facut eu nu merge

  2. am puso dar nu stiu ce nu am facut bine :-?

    [pawn]new  Days, Hours, Minutes, Seconds;

    // Calculate hours

    if(Seconds == 60)

    {

    Minutes++;

    }

    // Calculate minutes

    if(Minutes == 60)

    {

    Hours++;

    }

    // Calculate seconds

    if(Hours == 60)

    {

    Days++;

    }[/pawn]

    puteti observa sus spune 0 ore 0 minute 0 secunde dar mie mia luat cam circa 2 min

    4jgc.png

  3. GetTime este folosita pentru a afla timpul real(ceasul). Daca vrei sa faci asa trebuie sa faci 3 varabile

    new secunde[MAX_PLAYERS], minute[MAX_PLAYERS], ore[MAX_PLAYERS]; dupa faci un public care contureaza secundele.

    public ContTime()

    {

        secunde++;

        if(secunde == 60)

        {

            minute++;

        }

    .................................. si tot asa

    nu prea miam dat seama dar trebuie sa incerc acest server e bazat pe include dar na incerca sa vad ce pot face multumesc ai fost de mare ajutor :x

×
×
  • 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.