13.12.2010, 22:00
Quote:
heres ur problem:
Код:
[Gender]: %d Код:
[Gender]: %s |
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;
}
Did it from memory, Haven't used Pawno in quite some time, a bit rusty.