Jump to content

Question

Posted

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ă. 

7 answers to this question

Recommended Posts

  • 0
Posted

Când se Creează sunt asa:P

PlayerTextDrawShow(playerid, CeasPlayer[playerid][0]);

Dacă te referi la tot td-ul, le-am luat exact cum erau în TDE.

  • 0
Posted

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;
}

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.