29.12.2016, 18:55
Hello, I've been banging my head on this for a long time, what am I trying to do? I would like to put the gates of the player in a single line, the way it is shown in two lines, for example, the player has a cigarette lighter, how do you jump to put the two items on the same line? It's easy to understand, the code below that I did in two lines says it all.
PHP код:
if(PlayerData[playerid][pCigarros])
{
new cigarro[]= "Cigarros:[%d]", PlayerData[playerid][pCigarros];
format(strglobal, sizeof(strglobal), "%s", cigarro);
}
if(PlayerData[playerid][pIsqueiro])
{
new isqueiro[]= "Isqueiro:[%d]", PlayerData[playerid][pIsqueiro];
format(strglobal, sizeof(strglobal), "%s", isqueiro);
}
SendClientMessage(playerid, -1, strglobal);