STRING PROBLEM
#3

Quote:
Originally Posted by notime
Посмотреть сообщение
heres ur problem:
Код:
[Gender]: %d
change into:
Код:
[Gender]: %s
I'm pretty sure that will still only display it as, [Gender:] 1 or [Gender:] 2.
Could be wrong :P

pawn Код:
public MyDialogStatsSystem(playerid)
{
    if(PlayerInfo[playerid][pSex] == 1)
    {
        new String[128], Name[MAX_PLAYER_NAME], Cash = GetPlayerMoney(playerid), Score = GetPlayerScore(playerid), Age = PlayerInfo[playerid][pAge]; // String, Name, Geld, und Score angelegt.
        GetPlayerName(playerid,Name,sizeof Name);
        format(String, sizeof(String), "[Stats of %s]\n[Nickname]: %s  [Level]: %d  [Money]: %d  [Gender]: Male  [Age]: %d", Name, Name, Score, Cash, Age); // Unsere (New's) die wir oben neu angelegt haben - immer mit einem , trennen :5
        ShowPlayerDialog(playerid, DIALOG_STATS, 0, "My stats", String, "Close", " "); // Цffne das Dialog fenster beim Spieler
    }
    else if(PlayerInfo[playerid][pSex] == 2)
    {
        new String[128], Name[MAX_PLAYER_NAME], Cash = GetPlayerMoney(playerid), Score = GetPlayerScore(playerid), Age = PlayerInfo[playerid][pAge]; // String, Name, Geld, und Score angelegt.
        GetPlayerName(playerid,Name,sizeof Name);
        format(String, sizeof(String), "[Stats of %s]\n[Nickname]: %s  [Level]: %d  [Money]: %d  [Gender]: Female  [Age]: %d", Name, Name, Score, Cash, Age); // Unsere (New's) die wir oben neu angelegt haben - immer mit einem , trennen :5
        ShowPlayerDialog(playerid, DIALOG_STATS, 0, "My stats", String, "Close", " "); // Цffne das Dialog fenster beim Spieler
    }
    return 1;
}
Not positive, but I think this should work.
Did it from memory, Haven't used Pawno in quite some time, a bit rusty.
Reply


Messages In This Thread
STRING PROBLEM - by NuggaN_ - 13.12.2010, 21:54
Re: STRING PROBLEM - by notime - 13.12.2010, 21:56
Re: STRING PROBLEM - by Lynn - 13.12.2010, 22:00
Re: STRING PROBLEM - by notime - 13.12.2010, 22:06
Re: STRING PROBLEM - by NuggaN_ - 13.12.2010, 22:07
Re: STRING PROBLEM - by Lynn - 13.12.2010, 22:12
Re: STRING PROBLEM - by blackwave - 13.12.2010, 22:12
Re: STRING PROBLEM - by NuggaN_ - 13.12.2010, 22:16
Re: STRING PROBLEM - by Lynn - 13.12.2010, 22:21
Re: STRING PROBLEM - by NuggaN_ - 13.12.2010, 22:26

Forum Jump:


Users browsing this thread: 2 Guest(s)