%s problem need help
#1

hello guys i have my custom login system

i have this dialog which opens after player logged in

pawn Код:
new string[256], pname[MAX_PLAYER_NAME];
                GetPlayerName(playerid, pname, sizeof(pname));
                format(string, sizeof(string), "{FFFFFF}* Account information for nick '{00FF00}%s{FFFFFF}' are following:\n\n1). Account Password: {FF0000}Not Available (Disabled By Staff){FFFFFF}\n2). Admin Level: '{00FF00}%s{FFFFFF}'", pname , pInfo[playerid][Adminlevel]);
                ShowPlayerDialog(playerid, account_info, DIALOG_STYLE_MSGBOX, "{00FF00}Account Info", string,"Close","");
problem is in this
Код:
2). Admin Level: '{00FF00}%s{FFFFFF}'
i can only see in dialog
Код:
2). Admin Level: '
while it should be like this

Код:
2). Admin Level: '0'
i'm using yini hope you will help me
Reply
#2

Use %d for integers
Reply
#3

ohh shit i forgot that thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)