[Help]
#1

Cansomeone help me i want to add in register and login when the player have to Login/register it has there name in the dialog please help
Reply
#2

pawn Код:
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof(name));

// To your Code
format(str, sizeof(str), "Name: %s", name);
SendClientMessage(playerid, COLOR, str);
Reply
#3

pawn Код:
if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""BlueEx"Los Santos Reality Roleplay",""GreyEx"Welcome back To Grand Theft Auto Central Roleplay\nType in your password to get Started.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""BlueEx"Grand Theft Auto Central Roleplay Registration ",""GreyEx"Welcome to Grand Theft Auto Central Roleplay\nType in your password.","Register","Quit");
    }
Where to add it because still learning pawn
Reply
#4

anyone else can help please where to put that code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)