Format text directly into "SendClientMessage" ?
#10

Quote:
Originally Posted by Jakku
Посмотреть сообщение
Have much fun

pawn Код:
#define SendFormatMessage(%0,%1,%2,%3) format(str, sizeof(str),%2,%3) && SendClientMessage(%0, %1, str)

SendFormatMessage(playerid, COLOR, "I am %s", thisismyname);
This is great, almost perfect. Thankyou!


Quote:
Originally Posted by Nero_3D
You could do that if you knew how to use #emit (the assembly behind pawn)
The other solution would be to use a macro /\ or you use 'y_va' from YSI

y_va -> https://sampforum.blast.hk/showthread.php?tid=399069
YSI wiki -> http://ysi.wikia.com/wiki/Library:YSI%5Cy_va

If you don't want to use y_va for any reason
I'll read on this and check it out, thank you.


Thanks to you others as well, actually quite smart methods to use. This would indeed help my coding-flow get a bit better, along with other methods. I guess it's all about efficiency, right?

However, i guess i got what i needed.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)