SA-MP Forums Archive
[HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? (/showthread.php?tid=526576)



[HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 18.07.2014

Hello members we already know how to use color embedding.

pawn Code:
SendClientMessage(playerid, -1, "Random text is {00FF00}green {FFFFFF}color.");
Result



In SSCANF2

pawn Code:
CMD:metype(playerid,params[])
{
new string[256];
format(string,sizeof(string),"I just typed %s",params);
SendClientMessage(playerid, -1 , string);
return 1;
}
Result



FAILLLLLLLLLLLLLLLLLLLLL WTF HELP



Please Help Me My Dear Mates, BTW ****** SIR Please Help me to resolve the issue!
OR
Is there any other way to do things like this?





Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Vince - 18.07.2014

The client filters it out before sending it to the server, this isn't a bug with sscanf.


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 18.07.2014

Quote:
Originally Posted by Vince
View Post
The client filters it out before sending it to the server, this isn't a bug with sscanf.
Is there anyother way to do things like this?


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 19.07.2014

BUMP


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 20.07.2014

Bump
Cmon


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 26.07.2014

Bump.
Anyone?


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - codectile - 27.07.2014

You can try it, I am not sure whether it will work or not.

Code:
CMD:metype(playerid,params[])
{
new string[128];
new hexcode;
if(sscanf(params,"h",hexcode))return 1;
else
{
format(string,sizeof(string),"I just typed {%x} %s",hexcode,params);
SendClientMessage(playerid, -1 , string);
}
return 1;
}



Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 28.07.2014

Quote:
Originally Posted by ******
View Post
There are loads of ways - just make one up.
Can you provide me any source?
Sir, I don't know other ways. Please Guide me sir...


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Guest4390857394857 - 28.07.2014

Quote:
Originally Posted by codectile
View Post
You can try it, I am not sure whether it will work or not.

Code:
CMD:metype(playerid,params[])
{
new string[128];
new hexcode;
if(sscanf(params,"h",hexcode))return 1;
else
{
format(string,sizeof(string),"I just typed {%x} %s",hexcode,params);
SendClientMessage(playerid, -1 , string);
}
return 1;
}
I know this very well.
I Want MULTIPLE COLORS but with this we can only display the result with single color


Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE? - Beckett - 28.07.2014

Try to make more than one result?