My own /ann cmd doesn't work well
#8

Quote:
Originally Posted by Ranama
Посмотреть сообщение
I see the problem, you'll have to set a \ before all the " that you are using in your text becuse otherwise the function think your string ends there. Like this:
format(str, sizeof(str), "\"#COL_RED\"[ADMIN-ANN]\"#COl_WHITE\"%s: %s", sendername, str);
pawn Код:
new szStr[ 128 ]; // this is the default value of the chat message..
I believe it's useless using more then 128 value for such reason..


and for GameTextForPlayer/GameTextForAll, if you want to change the colour (or want a next line) of it then you have to use

pawn Код:
// colors ..
~n~ New line
~r~ Red
~g~ Green
~b~ Blue
~w~ White
~y~ Yellow
~p~ Purple
~l~ Black
~h~ Turn text colour lighter (used too much will make your text white, doesnt work on black)

// special text

 ~u~ up arrow (grey)
~d~ down arrow (grey)
~<~ left arrow (grey)
~>~ right arrow (grey)
] displays a * symbol (Only in text styles 3, 4 and 5)
~k~ keyboard key mapping (eg ~k~~VEHICLE_TURRETLEFT~ and ~k~~PED_FIREWEAPON~). Look here for a list of keys
https://sampwiki.blast.hk/wiki/GameTextStyle
Reply


Messages In This Thread
My own /ann cmd doesn't work well - by Guitar - 22.08.2012, 10:24
Re: My own /ann cmd doesn't work well - by Akira297 - 22.08.2012, 10:26
Re: My own /ann cmd doesn't work well - by Guitar - 22.08.2012, 10:31
Re: My own /ann cmd doesn't work well - by Akira297 - 22.08.2012, 10:32
Re: My own /ann cmd doesn't work well - by Ranama - 22.08.2012, 10:33
Re: My own /ann cmd doesn't work well - by Guitar - 22.08.2012, 10:34
Re: My own /ann cmd doesn't work well - by Ranama - 22.08.2012, 10:42
Re: My own /ann cmd doesn't work well - by FalconX - 22.08.2012, 10:44

Forum Jump:


Users browsing this thread: 2 Guest(s)