Jump to content
  • 0

sampmysql - libmysql


Bladex

Question

Asa am la login, sub el lastlogin:

[pawn] new lastlogin[64];

lastlogin = PlayerInfo[playerid][pLastLogin];

format(loginstring,sizeof(loginstring),"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!\n\nPlease enter your password below to login to your account. \n\n{FFFFFF}*Last Login: %s*",loginname,lastlogin);

ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");[/pawn]

si la onplayerlogin:

[pawn]  new string[256];

new dd,mm,yy;

new ore,mn,sec;

getdate(yy,mm,dd);

        gettime(ore,mn,sec);

format(string,sizeof(string),  "%d/%d/%d  %d:%d:%d",dd,mm,yy,ore,mn,sec);

strmid(PlayerInfo[playerid][pLastLogin], string, 0, strlen(string), 255);

[/pawn]

iar cand intru la last login imi apare: Streamer_OnplayerConnect =>>> http://postimage.org/image/uzuazme0f/

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Intr-un timp am avut aceeasi problema dar nu cu numere.

Imi aparea intr-o variabila valoarea alteia.

Rezolvarea mea a fost sa pun "_" in fata variabilei.

In cazul tau:

new _lastlogin[ 64 ];

Nu stiu din ce cauza a mers la mine, nu imi dau seama dar sa speram ca mergem si la tine.

Link to comment
Share on other sites

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.