Message problem
#5

Quote:
Originally Posted by mongi
Посмотреть сообщение
Try using 1024 as lenth
msg[1024]
So you just place random cell sizes? You don't optimize your code at all? Ok.

Quote:
Originally Posted by Rufio
Посмотреть сообщение
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.
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."1024strlen(query), 10241024-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."950strlen(msg), 950950-strlen(msg));
        
format(msgsizeof(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(querymsgsizeof(query)); 
     } 
(Sorry for unneeded %i, I'm tired lmao)
Reply


Messages In This Thread
Message problem - by Barnwell - 04.07.2017, 00:07
Re: Message problem - by Meller - 04.07.2017, 00:29
Re: Message problem - by mongi - 04.07.2017, 00:31
Re: Message problem - by Rufio - 04.07.2017, 00:32
Re: Message problem - by Meller - 04.07.2017, 00:35
Re: Message problem - by Rufio - 04.07.2017, 00:36
Re: Message problem - by Meller - 04.07.2017, 00:37
Re: Message problem - by Barnwell - 04.07.2017, 00:41
Re: Message problem - by mongi - 04.07.2017, 00:45
Re: Message problem - by Rufio - 04.07.2017, 00:45
Re: Message problem - by Meller - 04.07.2017, 00:49
Re: Message problem - by Rufio - 04.07.2017, 00:51
Re: Message problem - by Meller - 04.07.2017, 00:54
Re: Message problem - by Rufio - 04.07.2017, 00:56
Re: Message problem - by Meller - 04.07.2017, 00:59
Re: Message problem - by Rufio - 04.07.2017, 01:01
Re: Message problem - by Sew_Sumi - 04.07.2017, 01:50
Re: Message problem - by Meller - 04.07.2017, 02:07
Re: Message problem - by Sew_Sumi - 04.07.2017, 02:14

Forum Jump:


Users browsing this thread: 3 Guest(s)