SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 18/07/2014, 08:32 AM   #1
Guest4390857394857
Guest
 
Posts: n/a
Question [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

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?


  Reply With Quote
Old 18/07/2014, 08:33 AM   #2
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,066
Reputation: 2660
Default Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

The client filters it out before sending it to the server, this isn't a bug with sscanf.
__________________
Vince is offline   Reply With Quote
Old 18/07/2014, 08:47 AM   #3
Guest4390857394857
Guest
 
Posts: n/a
Question Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

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?
  Reply With Quote
Old 19/07/2014, 11:42 AM   #4
Guest4390857394857
Guest
 
Posts: n/a
Default Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

BUMP
  Reply With Quote
Old 20/07/2014, 06:05 PM   #5
Guest4390857394857
Guest
 
Posts: n/a
Default Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

Bump
Cmon
  Reply With Quote
Old 26/07/2014, 04:45 PM   #6
Guest4390857394857
Guest
 
Posts: n/a
Question Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

Bump.
Anyone?
  Reply With Quote
Old 27/07/2014, 09:06 AM   #7
codectile
Huge Clucker
 
codectile's Avatar
 
Join Date: Jul 2014
Posts: 248
Reputation: 116
Default Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

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;
}

Last edited by codectile; 27/07/2014 at 09:10 AM. Reason: typo
codectile is offline   Reply With Quote
Old 28/07/2014, 08:08 PM   #8
Guest4390857394857
Guest
 
Posts: n/a
Lightbulb Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

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...
  Reply With Quote
Old 28/07/2014, 08:10 PM   #9
Guest4390857394857
Guest
 
Posts: n/a
Thumbs down Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

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
  Reply With Quote
Old 28/07/2014, 08:45 PM   #10
Beckett
High-roller
 
Beckett's Avatar
 
Join Date: Feb 2012
Location: www.finalnights-rp.com
Posts: 1,794
Reputation: 104
Default Re: [HELP]Is it possible? To Color Embed in SSCANF? Maybe SSCANF Bug/ISSUE?

Try to make more than one result?
__________________
Final Nights Roleplay
The first SA-MP server that is not regulated by administrators.
No OOC hierarchy. Strictly directed by players. Utopian vision.

El primer servidor SA-MP que no está regulado por los administradores.
Sin jerarquías OOC. Estrictamente dirigido por jugadores. Visión utópica.

Primul server de SA-MP care nu este regulat de administratori.
Fără ierarhie OOC. Strict dictat de jucători. Visiune utopică.

Yöneticiler tarafından düzenlenmeyen ilk SA-MP sunucusu.
OOC hiyerarşisi yok. Kesinlikle oyuncular tarafından yönetiliyor. Ütopik görme.


Become a Member of our Discord Channel
Beckett is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sscanf issue OpticKiller Scripting Help 3 02/06/2013 08:28 AM
Sscanf Issue. Need help. se7evolution Server Support 27 20/06/2012 05:33 PM
SSCANF Issue Deduction Scripting Help 8 14/05/2012 05:59 AM
sscanf (set hex color) BuLLeT[LTU] Help Archive 6 19/09/2010 07:54 AM
Issue with sscanf Warlock Help Archive 8 04/08/2010 04:28 PM


All times are GMT. The time now is 08:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.