String cutoff
#1

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.

Код:
enum FactionData
{
	FactionName[512],
        ... // other stuff
};
Posting a bit of my /fadvert command

Код:
	    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);
			}
		}
Reply


Messages In This Thread
String cutoff - by HighFlyer - 11.09.2012, 18:20
Re: String cutoff - by zT KiNgKoNg - 11.09.2012, 18:26
Re: String cutoff - by HighFlyer - 11.09.2012, 18:34
Re: String cutoff - by zT KiNgKoNg - 11.09.2012, 19:08
Re: String cutoff - by HighFlyer - 11.09.2012, 19:15
Re: String cutoff - by zT KiNgKoNg - 11.09.2012, 19:37
Re: String cutoff - by HighFlyer - 11.09.2012, 19:47
Re: String cutoff - by zT KiNgKoNg - 11.09.2012, 19:49
Re: String cutoff - by zT KiNgKoNg - 11.09.2012, 19:52
Re: String cutoff - by HighFlyer - 11.09.2012, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)