Add color and \n on SSCANF
#4

Solved!

Код:
CMD:dp(playerid, params[])
{
if(Giocatore[playerid][Polizia] == 1 || Giocatore[playerid][Governo] == 1 || Giocatore[playerid][FBI] == 1)
{
new testo[128];
if(sscanf(params, "s[128]", testo)) return SendClientMessage(playerid, BIANCO, "/dp [testo]");
format(testo, sizeof(testo), "%s", str_replace("#rosso", "{FF2626}", testo));
format(testo, sizeof(testo), "%s", str_replace("#ROSSO", "{FF2626}", testo));
format(testo, sizeof(testo), "%s", str_replace("#Rosso", "{FF2626}", testo));
format(testo, sizeof(testo), "%s", str_replace("|", "\n", testo));
for(new i = 0; i < sizeof(DP_Info); i++)
{
//DP_Info[MAX_DP][dpInfo]
if(DP_Info[i][dpCreated] == 0)
{
new Float:ggX, Float:ggY, Float:ggZ;
GetPlayerPos(playerid, ggX, ggY, ggZ);
DP_Info[i][dpCreated] = 1;
DP_Info[i][dpX] = ggX;
DP_Info[i][dpY] = ggY;
DP_Info[i][dpZ] = ggZ;
DP_Info[i][dpText] = CreateDynamic3DTextLabel(testo,0xFFFFFFFF,DP_Info[i][dpX],DP_Info[i][dpY],DP_Info[i][dpZ],20.0);
return 1;
}
}
}
return 1;
}
Reply


Messages In This Thread
Add color and \n on SSCANF - by vinnythebest - 09.01.2015, 13:34
Re: Add color and \n on SSCANF - by vinnythebest - 09.01.2015, 14:02
Re: Add color and \n on SSCANF - by vinnythebest - 09.01.2015, 14:08
Re: Add color and \n on SSCANF - by vinnythebest - 09.01.2015, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)