When I Increase The String Size It Doesn't Work
#1

Hey guys, for some reason when I increase my string size it doesn't work, what I mean is that the string doesn't get formated(I guess) so the SendClientMessage doesn't work.


pawn Код:
new stringx[128], xname[24];
                    GetPlayerName(playerid, xname, 24);
                    format(stringx, sizeof(stringx), ""red"%s "lime"("orange"I"red"D"lime":"red" %i"lime") "orange"might be speed hacking "lime"|",xname, playerid);
                    SendMessageToAdmins(Yellow, stringx);
                    SpeedHackWarn[playerid] = 1;
For example if I make the size of the string "string x" to like 140 the SendMessageToAdmins doesn't work, I tried with the function SendClientMessageToAll but still.

This code is under OnPlayerUpdate.

Sorry for the undescriptive(pretty much) title.

Thanks for reading.
Reply
#2

The string is too long for the message can be sent. Use less colors, and after should work.
Reply
#3

I don't see why you're sending the SendClientMessage as yellow yet start with Red, logic would state put SendClientMessage(playerid, COLOR_RED) and use yellow to embed.
Reply
#4

I'll give it a try, thanks.

EDIT: Still :/

EDIT 2: Problem solved, I had to remove some colors, that's all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)