Random messages with %s
#2

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

// Then doing

format(text_to_send, sizeof(text_to_send), "%s", npc_phrases[random(sizeof(npc_phrases))], playername);
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)