Help regarding a function I made.
#8

Quote:
Originally Posted by dominik523
Посмотреть сообщение
First of all, string[1024] is a really big mistake that you are making. SendClientMessage can only send 144 characters, so you are creating way too big string.
CreatePlayerMeString would work like this.
Код:
CMD:me(playerid, params[])
{
	new string[128];
	format(string, sizeof(string), "%s", CreatePlayerMeString(playerid, params);
	SendClientMessage(playerid, -1, string);
	return 1:
}
You need to use it with format because it will return a string. You tried to store that string into an integer, which won't work.
Still not working.
Reply


Messages In This Thread
Help regarding a function I made. - by Josh23761 - 04.11.2014, 19:53
Re: Help regarding a function I made. - by M4D - 04.11.2014, 20:07
Re: Help regarding a function I made. - by RustyXD - 04.11.2014, 23:05
Re: Help regarding a function I made. - by Su37Erich - 05.11.2014, 00:39
[No subject] - by Josh23761 - 05.11.2014, 17:12
Re: Help regarding a function I made. - by dominik523 - 05.11.2014, 17:33
Re: Help regarding a function I made. - by Josh23761 - 05.11.2014, 18:32
Re: Help regarding a function I made. - by Josh23761 - 05.11.2014, 19:29
Re: Help regarding a function I made. - by Josh23761 - 05.11.2014, 22:40
Re: Help regarding a function I made. - by Eth - 05.11.2014, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)