Jump to content
  • 0

Problema Ceas și nume Role-Play


Chuck_James

Question

Problema intalnita (descriere): Când dau /ceas, aplica animația dar nu se afișează td-urile. Td-urile sunt pe Player, și sunt definte:

New PlayerText:CeasPlayer[MAX_PLAYERS][16];

 

Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):ÎL pun dacă e nevoie.
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da,le-am făcut globale și am pus playerid, tot nu merge.

Problema intalnita (descriere): Nu știu unde sa pun script-ul cu numele Role-Play. 
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):https://forum.sa-mp.com/showthread.php?t=38965&page=457 ultimul răspuns aici
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:nu, pentru ca nu am folosit niciodată. 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Arata codurile cand se creaza si se afiseaza textdraw-urile. asta ar trebui sa te gandesti in primul rand, care sunt chestiile accesate in momentul acela.

Cea mai sigura sursa de facut bani de buzunar in mediul virtual. Inregistreaza-te si pune-te pe treaba !!!

http://www.viespar.ro/?reff=ab8e9d8086304d6136eac03c710238d7

Link to comment
Share on other sites

  • 0

CMD:ceas(playerid, params[])
{
       if(IsPlayerConnected(playerid))
       if(PlayerInfo[playerid][pCeasPlayer] == 1)
       {
          new string[60];
          new year,month,day,hours,minutes,seconds;
          PlayerTextDrawShow(playerid, CeasTD[playerid][0]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][1]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][2]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][3]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][6]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][7]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][8]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][9]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][10]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][11]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][12]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][13]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][14]);
          PlayerTextDrawShow(playerid, CeasTD[playerid][15]);
          format(string, sizeof string, "%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
          PlayerTextDrawSetString(playerid, CeasTD[playerid][4], string);
          PlayerTextDrawShow(playerid, CeasTD[playerid][4]);
             format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
          PlayerTextDrawSetString(playerid, CeasTD[playerid][5], string);
          PlayerTextDrawShow(playerid, CeasTD[playerid][5]);
          SetTimerEx("CeasShow", 4, 0, "d", playerid);
       }
       return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.