02.04.2012, 02:36
Gosh, I can't believe I need help with this.
I want random messages that have one string inserted in to them, which will be a random player's name - I am making my NPCs say random shit every few minutes. For example
But it doesn't work, and just prints '%s' without the substitution.
I want random messages that have one string inserted in to them, which will be a random player's name - I am making my NPCs say random shit every few minutes. For example
pawn Код:
new npc_phrases[][] = {
"Blah Blah Blah %s.",
"Hello %s.",
"%s sucks."
};
// Then doing
format(text_to_send, sizeof(), "%s", npc_phrases[whatever], playername);