MSGBOX Dialog
#1

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:
Код:
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;
	}
It shows just Turite %i zvaigzduciu* But why?
Reply


Messages In This Thread
MSGBOX Dialog - by Daslee - 12.04.2011, 12:20
Re: MSGBOX Dialog - by Alby Fire - 12.04.2011, 12:34
Re: MSGBOX Dialog - by Daslee - 12.04.2011, 12:37
Re: MSGBOX Dialog - by Daslee - 12.04.2011, 14:07
Re: MSGBOX Dialog - by Dainyzxz - 19.05.2011, 20:35

Forum Jump:


Users browsing this thread: 1 Guest(s)