Random messages with %s
#3

Can try this out

pawn Код:
new npc_phrases[][] = {
"Blah Blah Blah %s.",
"Hello %s.",
"%s sucks."
};

// Then doing

new rand = random(sizeof(npc_phrases));
format(text_to_send, sizeof(text_to_send), npc_phrases[rand], playername);
I say maybe this on the basis of...

pawn Код:
#define PlayerPath "Something/%s.ini"

format(file, sizeof(file), PlayerPath, Name(playerid));
I know that works, not sure about what I posted above
Reply


Messages In This Thread
Random messages with %s - by MP2 - 02.04.2012, 02:36
Re: Random messages with %s - by DarkScripter - 02.04.2012, 03:23
Re: Random messages with %s - by [ABK]Antonio - 02.04.2012, 03:27
Re: Random messages with %s - by [HiC]TheKiller - 02.04.2012, 03:38
Re: Random messages with %s - by MP2 - 02.04.2012, 03:43

Forum Jump:


Users browsing this thread: 1 Guest(s)