04.07.2017, 00:35
So you just place random cell sizes? You don't optimize your code at all? Ok.
Actually it do matter, if you use common sense and actually read his code. He's using \n which by a quick thinking of "common sense" tells me that he's doing this for a dialog, which explains his "strcat".
@OP:
Run this debug for me please:
(Sorry for unneeded %i, I'm tired lmao)
Quote:
Doesn't matter.
Your issue is the fact that SAMP doesn't support chat messages that are longer than a certain number of characters(144? I think.) You can split messages into two. |
@OP:
Run this debug for me please:
PHP код:
printf("DEBUG: Variable query has a default cell sizes of (%i) and has (%i/%i) in use and can handle %i more.", 1024, strlen(query), 1024, 1024-strlen(query));
if(EAdminFlags:GetPVarInt(playerid, "AdminFlags") != EAdminFlags_None) {
printf("DEBUG: Variable msg has a default cell sizes of (%i) and has (%i/%i) in use and can handle %i more.", 950, strlen(msg), 950, 950-strlen(msg));
format(msg, sizeof(msg), "NumAJails:{FFFFFF}[%s] NumKicks:{FFFFFF}[%s] {0000FF}NumBans{FFFFFF}[%s] {0000FF}Wealth:{FFFFFF}[%s]\n",getNumberString(GetPVarInt(targetid, "NumAJAils")),getNumberString(GetPVarInt(targetid, "NumKicks")), getNumberString(GetPVarInt(targetid, "NumBans")),getNumberString(getTotalWealth(targetid)));
//SendClientMessage(playerid, COLOR_LIGHTRED, msg);
strcat(query, msg, sizeof(query));
}