• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How to save message with custom color to database?
#3
(2020-11-06, 07:30 PM)Pinch Wrote:
Code:
CMD:save(playerid, params[]

{

? ? const MESSAGE_LENGTH_LIMIT = 100;

? ? if (strlen(params) > MESSAGE_LENGTH_LIMIT)

? ? ? ? return 0; // You probably want to return error message to player here.

? ? ? ?

? ? strcpy(PlayerInfo[playerid][pMessage], params);

? ? SaveMessage(playerid);

? ? return 1;

}



The problem is when I do /save {FF0000}Test{FFFFFF}Test

Its only save TestTest not full message

[Image: unknown.png]
  Reply


Messages In This Thread
RE: How to save message with custom color to database? - by Zow - 2020-11-06, 07:39 PM

Forum Jump: