17.12.2016, 12:31
So, I'm doing an inventory system and would like to know how I do to show the intens in the same line, for example, I have a cell phone and money, and I would not like to skip a line to show by yesterday in each line, Look what I did:
So, the logic would be right, but it would not be the way I wanted it to be, how can I do to show the item on the same line?
PHP код:
if(GetPlayerMoney(playerid) >= 1) format(strglobal, sizeof(strglobal), "[Itens]: Dinheiro:[$%d]", GetPlayerMoney(playerid)); //linha 1
if(PlayerData[playerid][pCelular] == 1) format(strglobal, sizeof(strglobal), "[Itens 2]: Celular", GetPlayerMoney(playerid)); //linha 2
SendClientMessage(playerid, -1, strglobal);