11.09.2012, 18:20
Hello there,
I have a problem where a faction name gets cut off in the chat, for instance, instead of "San Andreas Police Department", I get "San Andreas Police Depa". It is cut off everywhere, on dialogs, on /fadvert command... didn't see an occasion where it worked. I've read something about this, and I've increased FactionName string from 256 to 512 and I've tried the maximum of 1024 too, but none of these fixed the issue.
Posting a bit of my /fadvert command
I have a problem where a faction name gets cut off in the chat, for instance, instead of "San Andreas Police Department", I get "San Andreas Police Depa". It is cut off everywhere, on dialogs, on /fadvert command... didn't see an occasion where it worked. I've read something about this, and I've increased FactionName string from 256 to 512 and I've tried the maximum of 1024 too, but none of these fixed the issue.
Код:
enum FactionData { FactionName[512], ... // other stuff };
Код:
if(Player[playerid][FactionRank] >= 4) { new message[128], string[256]; if(sscanf(params, "s[128]", message)) { SendClientMessage(playerid, WHITE, "Server: /fadvert [advertisement]"); SendClientMessage(playerid, GREY, "Example: '/fadvert Here to save your lives everyday.'"); SendClientMessage(playerid, GREY, "You will see: [FACTION ADVERT] Call 911 for any immediate reports on problems or crimes committed. [San Andreas Police Department]"); } else { format(string, sizeof(string), "[FACTION ADVERT] %s [%s]", message, Factions[Player[playerid][Faction]][FactionName]); SendClientMessageToAll(ADVERT, string); } }