SA-MP Forums Archive
When I Increase The String Size It Doesn't Work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: When I Increase The String Size It Doesn't Work (/showthread.php?tid=395876)



When I Increase The String Size It Doesn't Work - gtakillerIV - 28.11.2012

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.


Re: When I Increase The String Size It Doesn't Work - Edvin - 28.11.2012

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


Re: When I Increase The String Size It Doesn't Work - Smally - 28.11.2012

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.


Re: When I Increase The String Size It Doesn't Work - gtakillerIV - 28.11.2012

I'll give it a try, thanks.

EDIT: Still :/

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