Jump to content

BaFFyJunior

Membru
  • Posts

    240
  • Joined

  • Last visited

  • Days Won

    4

Community Answers

  1. BaFFyJunior's post in Problema Login Textdraw, poate sa ma ajute cineva? was marked as the answer   
    Redefineste LoginPTD...
    new PlayerText:LoginPTD[3][MAX_PLAYERS]; format(string, sizeof(string), "Name: %s", GetName(playerid)); PlayerTextDrawSetString(playerid, LoginPTD[0][playerid], string); PlayerTextDrawSetString(playerid, LoginPTD[1][playerid], "Password: ~b~click"); format(string, sizeof(string), "Last Login:~n~%s", laston); PlayerTextDrawSetString(playerid, LoginPTD[2[playerid]], string); for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, LoginPTD[i][[playerid]); for(new i = 0; i < 2; i++) TextDrawShowForPlayer(playerid, LoginTD); SelectTextDraw(playerid, 0xFFFFF00FF); public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {     if(playertextid == LoginPTD[1][playerid])     {         ShowPlayerDialog(playerid, DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD, "Login", "Insert your password in the dialog below!", "Login", "Quit"); return 1;     }     return 0; } Inlocuieste peste tot unde folosesti LoginPTD[numar] cu LoginPTD[numar][playerid].
  2. BaFFyJunior's post in ajutor pentru culoare was marked as the answer   
    format(string, sizeof(string), "{Notice}:{FF0000} Adminul %s {FFFFFF}este acum {FF0000}on duty", GetName(playerid));
  3. BaFFyJunior's post in Problema baza de date was marked as the answer   
    Creeaza o coloana numita RegisterDate in tabelul users a bazei tale de date de tip date.
  4. BaFFyJunior's post in Problema was marked as the answer   
    Iti spun ce am facut eu.
    la OnPlayerKeyStateChange la if(newkeys & KEY_CTRL_BACK) daca o ai, daca nu o adaugi tu, faci astfel:
     
    if(newkeys & KEY_CTRL_BACK) { enter_apartment(playerid); } KEY_CTRL_BACK  e tasta H de pe testatura. https://wiki.sa-mp.com/wiki/Keys
    Sper ca te-am ajutat!
×
×
  • 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.