Help regarding a function I made.
#5

Thanks, but now I have another custom function that does not work:

pawn Код:
CreatePlayerMeString(playerid, astr[])
{
    new name[MAX_PLAYER_NAME], string[1024];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* %s %s", name, astr);
    return string;
}
I know what is probably wrong, is that return string thing, but I dunno how else I could get it to work. Its suppose to take a string the user imputed, and format it to make a /me style string.

Example:
pawn Код:
new mestring = CreatePlayerMeString(playerid, "wishes that his custom function could work");
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)