Message problem
#6

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."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)
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.
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)