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

Question

Posted

Problema intalnita (descriere):Salut,vreau sa fac ca pe Bugged un textdraw cu Wanted scade in: 15 minute .Am facut texdraw-ul Am pus la new asta:

------------------------------------------

new Text:WantedScade[MAX_PLAYERS];

----------------------------------

Pe urma am adaugat textdraw-ul la OnGameModeInit si in ultimul rand am adaugat la  OnPlayerStateChange asta

-----------------------------------------------------------------------------------

        if(playerVariables[playerid][pWarrants] >= 1)
        {
            new string2[256];
            format(string2, 256, "Wanted scade in: ~r~ %d secunde", CalculeazaTimp(WantedTime));
            TextDrawSetString(WantedScade[playerid], string2);
        }

-------------------------------------------------------------------------------------------
Ero(area / rile) / warning-(ul / urile): Si imi da eroare asta "D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7817) : error 017: undefined symbol "i" "
Liniile de cod / sursa / script-ul(obligatoriu): Linia de cod este asta "format(string2, 256, "Wanted scade in: ~r~ %d secunde", CalculeazaTimp(WantedTime)); "
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da

 

19 answers to this question

Recommended Posts

  • 0
Posted

Da-ne functia CalculeazaTimp.

stockarrow-10x10.pngCalculeazaTimp(secunde)
{
    new time = secunde;
    time = time%3600;
    new minute = time/60;
    time = time%60;
    new secunde2 = time;
    new string[10];
    format(string, sizeof(string),"%02d:%02d",minute,secunde2);
    return string;
}

 
  • 0
Posted

Da

 

 

Imposibil. Recompiliaza, cauta linia problema si posteaz-o aici.

242086.png

  • 0
Posted (edited)

Uite,asta este eroare :

---------------------------------------------------------------------------------------------

D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7817) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

---------------------------------------------------------------------------------------------

Si asta este linia de cod:

---------------------------------------------------------------------------------------------

format(string2, 256, "Wanted scade in: ~r~ %d secunde", CalculeazaTimp(WantedTime));

---------------------------------------------------------------------------------------------

 
 

Uite http://i.imgur.com/EE0WUMe.png

 
Edited by Sammich
  • 0
Posted (edited)

Uite,asta este eroare :

---------------------------------------------------------------------------------------------

D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7817) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

---------------------------------------------------------------------------------------------

Si asta este linia de cod:

---------------------------------------------------------------------------------------------

format(string2, 256, "Wanted scade in: ~r~ %d secunde", CalculeazaTimp(WantedTime));

---------------------------------------------------------------------------------------------

 
 

Uite http://i.imgur.com/EE0WUMe.png

 

Da, pai tu nu ai transcris linia problema bine. (WantedTime)

format(string2, 256, "Wanted scade in: ~r~ %d secunde", CalculeazaTimp(WantedTime[playerid]));

Solved.

 

 

Edited by KnowN

242086.png

  • 0
Posted (edited)

Adauga

TextDrawShowForPlayer(playerid, WantedScade[playerid]);

 

Edited by KnowN

242086.png

  • 0
Posted

Acum imi da warning-urile astea:

----------------------------------------------------------------------

D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7818) : warning 213: tag mismatch
D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7818) : warning 213: tag mismatch

-------------------------------------------------------------------

Linia 7818 este asta :

--------------------------------------------------------------

TextDrawSetString(playerid, WantedScade[playerid]);

--------------------------------------------------------------

 
  • 0
Posted

Acum imi da warning-urile astea:

----------------------------------------------------------------------

D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7818) : warning 213: tag mismatch
D:\Gamemoduri\bugged!\gamemodes\rpg.pwn(7818) : warning 213: tag mismatch

-------------------------------------------------------------------

Linia 7818 este asta :

--------------------------------------------------------------

TextDrawSetString(playerid, WantedScade[playerid]);

--------------------------------------------------------------

 

Pune

TextDrawSetString(WantedScade[playerid], string2);

Stiu ca am zis ca parametrii sunt gresiti, dar eram putin cu capul in nori :))

E bun asa.

242086.png

  • 0
Posted

Tot nu apare textdraw-ul

 

Probabil din cauza scriptului gandit gresit.

242086.png

  • 0
Posted

Pai ce trebuie sa iti dau ca sa poti stii cum functioneaza?

 

Du-te la cereri tutoriale si explica ce vrei sa faca sistemul.

242086.png

  • 0
Posted

Am postat

 

Du-te la cereri tutoriale si explica ce vrei sa faca sistemul.

Am vazut ceva,cand ma urc intr-o masina sau asa ceva imi apare texdraw-ul,dar nu se secundele sau minutele

 
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.