05.11.2014, 17:12
Thanks, but now I have another custom function that does not work:
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 Код:
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;
}
Example:
pawn Код:
new mestring = CreatePlayerMeString(playerid, "wishes that his custom function could work");