Quote:
Originally Posted by Meller
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:
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));
}
(Sorry for unneeded %i, I'm tired lmao)
|
And if you use "common sense", you can clearly see there is a SendClientMessage and string is formatted for that SendClientMessage.
No, it doesn't matter.
Also, it's always good to educate yourself, have a read;
https://sampwiki.blast.hk/wiki/Strcat
strcat isn't a dialog exclusive function.