Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Help with Getplayername in Dialog on logging

$
0
0
Code:

if(fexist(UserPath(playerid)))
        {
                INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                  ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login",""COL_WHITE"The account is already registered,please type your password. \n "COL_ORANGE"Username:"COL_WHITE" string \n "COL_ORANGE"Password :","Login","Quit");
        }
        else
        {
                ShowPlayerDialog(playerid,DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_GREEN"Registering...",""COL_ORANGE"Type your password below to register a new account :((How to get players name and put it here","Register","Quit");
        }

I'm trying to show the players name after username :
How do I use Getplayername to show the players name in Dialog
Code:

      {
                ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login",""COL_WHITE"The account is already registered,please type your password. \n "COL_ORANGE"Username:((How to show the players name here who is logging in ))"COL_WHITE" string \n "COL_ORANGE"Password :","Login","Quit");

        }

Part of the dialog text

Code:

\n "COL_ORANGE"Username:((How to show the players name here who is logging in ))

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>