if(EAdminFlags:GetPVarInt(playerid, "AdminFlags") != EAdminFlags_None) {
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));
}
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. |
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));
}
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 код:
|
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.
|
So you just place random cell sizes? You don't optimize your code at all? Ok.
|
Dear non common sense people, let's see how he's trying to output his code:
This code is taken from the same gamemode as his: PHP 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".
|
He's using \n |
You obviously don't.
It doesn't explain his strcat. Strcat concatenates two strings. It isn't a dialog exclusive function. It can be used anywhere two strings are present. Moving on; Could just be a console C scripter trying his luck with PAWN. The only one acting smart is you unfortunately. |
Oh god, I knew exactly from his little code and from his name and avatar which script he was scripting on as I played there recently and had a server with the same script. And knowing just that made me realize after my first post that I could just look at the code myself and point out a small debug printf that he could use. And having strcat to a string AFTER the message was sent doesn't make any realistic sense to me. To add something that already was sent in a message to the client, to add this to a bigger string and store it there for nothing doesn't make any sense. And I already knew his full code, so I knew instantly that he used \n for a dialog and then added that string to the bigger string. But he's doing it wrong anyway, he shouldn't use query's variable as in the gamemode it was created for mysql's query. But everyone may code as they want. Please stop bullshitting as I actually know what I'm doing, where you don't. I knew from just his name what he was struggling with.
@OP: Get on skype and I'll help you in screenshare, you know who I am. xd |
You should probably drink a glass of cold water and calm down before calling out an Computer Engineer on not knowing what they're talking about and before drinking a glass of water, open youtube and search for some grammar 101 lessons. :/
|
I love taking feedback about my grammar, but what I don't like is people giving sarcastic feedback. If you'd point of what "mistakes" I make in my English grammar, I'd love to write it down and pay attention to it.
Thanks? |
If you don't like being given sarcastic feedback, be less hostile towards people replying to you and don't act as if you're some sort of a computer engineer working for a major computing company, you're only scripting PAWN here. I've given up on this god forgotten language a while ago and I was casually browsing forums. You reminded me why I quit PAWN in the first place.
|
Great, that was my mission I guess. Time for me to also leave SAMP because I've got no life and are just posting sarcastic feedback to everyone?
- That's not how life works bud'. |
I'd suggest to the OP to ignore both the guessers in this situation...
|