12.04.2011, 12:20
Hello, im trying to make a msgbox dialog which shows info about player, so now i have everything coded, but when i writing /info it shows just last line of my player info. Here is my code:
It shows just Turite %i zvaigzduciu* But why?
Код:
if(!strcmp(cmdtext, "/info", true,5)) { new msg[128]; new Float:thealth, Float:armo; // HP / ARMOUR GetPlayerHealth(playerid,thealth); GetPlayerArmour(playerid,armo); new litair, litaib, litain; // rankose, banke, namie litair = playerDB[playerid][pinigai]; litaib = playerDB[playerid][banke]; litain = playerDB[playerid][namuose]; new zolex = playerDB[playerid][zole]; new wlevel = GetPlayerWantedLevel(playerid); // staaaarzz format(msg, 128, "Gyvybiu: %i Sarvu: %i\n", floatround(thealth), floatround(armo)); SendClientMessage(playerid, WHITE, msg); format(msg, 128, "Rankose turite: %i Lt\n", litair); SendClientMessage(playerid, YELLOW, msg); format(msg, 128, "Banko saskaitoje turite: %i Lt\n", litaib); SendClientMessage(playerid, YELLOW, msg); if(litain > 0) { format(msg, 128, "Namuose turite: %i Lt\n", litain); SendClientMessage(playerid, YELLOW, msg); } format(msg, 128, "Turite %i gramu zoles\n", zolex); SendClientMessage(playerid, GREEN, msg); format(msg, 128, "Turite %i zvaigzduciu*\n", wlevel); SendClientMessage(playerid, BLUE, msg); ShowPlayerDialog(playerid, 1997, DIALOG_STYLE_MSGBOX,"Info apie tave", msg, "Gerai", "Iseiti"); return 1; }