Dialog help
#2

Do not use 2D array.

pawn Код:
ShowStats(playerid)
{
    new Stats[400]; // increase if needed
    format(Stats, sizeof Stats, "{F0FF00}General Informations\n{FF0000}PlayerLevel: {FFFFFF}[%d]\n{FF0000}SpawnHealth: {FFFFFF}[%.1f]\n{FF0000}Cash: {FFFFFF}[$%d]\n{FF0000}Bank: {FFFFFF}[$%d]\n{FF0000}Phone Number: {FFFFFF}[%d]\n\n", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pSHealth] + 50, GetPlayerMoney(playerid), PlayerInfo[playerid][pAccount], PlayerInfo[playerid][pPnumber]);
    format(Stats, sizeof Stats, "%s{F0FF00}Completed Stuff\n{FF0000}CashBox: {FFFFFF}[%d/4]\n{FF0000}HotWire: {FFFFFF}[%d/4]\n{FF0000}StreetRace: {FFFFFF}[%d/4]\n{FF0000}Service: {FFFFFF}[%d/20]\n\n", Stats, PlayerInfo[playerid][pCB], PlayerInfo[playerid][pHW], PlayerInfo[playerid][pSR], PlayerInfo[playerid][pWA]);
    return Stats;
}
Reply


Messages In This Thread
Dialog help - by sheNdjze - 01.04.2016, 16:28
Re: Dialog help - by Konstantinos - 01.04.2016, 16:37
Re: Dialog help - by sheNdjze - 01.04.2016, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)