#1

how i can send message to screen or speack, if text style is Style 0 or Style 1 or Style 2 or Style 3 or Style 4
or Style 5 or Style 6.
Reply
#2

pawn Код:
GameTextForPlayer(playerid, "messagehere", timeinmilliseconds, type);
//or
GameTextForAll("messagehere", timeinmilliseconds, type);
Reply
#3

i dont mean that
Reply
#4

I mean if i write in chat box command /something (Hy All) !!!
and that show all palyer "Hy All"

Style 0 format "Hy All"

Or command styles 0-6
/something 0 (Hy All)
or
/something 1 (Hy All)
Reply
#5

You first say send message and then you want using GameTextForPlayer?
And what you think with

Quote:

Or command styles 0-6
/something 0 (Hy All)
or
/something 1 (Hy All)

Reply
#6

like ..
pawn Код:
dcmd_say(playerid, params[])
{
  new style, text[218];
  if(sscanf(params, "ds", style, text) return SendClientMessage(playerid, COLOR_WHATEVER, "SYNTAX: /say <style> <text>");
  if(style > 5 || style < 0) return SendClientMessage(playerid, COLOR_WHATEVER, "This style does not exist");
  GameTextForAll(text, 3000, style);
  return 1;
}
Action: /say 2 hai
gives you: 'hai' with style 2
_________________________________________________

Something like that? Or did I misunderstood you?

_________________________________________________
For this code to function properly you need:
Reply
#7

But if you write /say 7 <text>

7 - style,doesn`t exist,it will crash
Reply
#8

I mean how how talk if text style is 0 or 1, 0-6
Reply
#9

ok i try that wait!

dcmd_say(playerid, params[])
{
new style, text[218];
if(sscanf(params, "ds", style, text) return SendClientMessage(playerid, COLOR_WHATEVER, "SYNTAX: /say <style> <text>");
GameTextForAll(text, 3000, style);
return 1;
}
Reply
#10

When you writing pawno code,put it under [pawn] or [ code ]

Try to use something like
if(style >= 1 && =< 6)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)