Add color and \n on SSCANF
#1

Hello guys, i've made this code:

Код:
CMD:dp(playerid, params[])
{
new testo[128];
if(sscanf(params, "s[128]", testo)) return SendClientMessage(playerid, BIANCO, "/dp [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,0xFF0000FF,DP_Info[i][dpX],DP_Info[i][dpY],DP_Info[i][dpZ],20.0);
return 1;
}
}
return 1;
}
But i wanna try can write on "TESTO" the \n for go on another line and {COLOR} for apply a Color, who can help me?

Thanks all.
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)