#1

When i put the below formats together, only one format appears, why is this?



This is what i have.
pawn Код:
format(string, sizeof(string), "[CAPTURE] {15FF00}%s{FF0000} has been taken over!", ZoneName(checkpointid));
format(string, sizeof(string), "You get {FFFF00}+3 score, +20 armor and $2500{FFFFFF} for capturing zone {15FF00}%s!", ZoneName(checkpointid));
Reply
#2

That's because you're just re-formatting the string.
Reply
#3

So, which way should put put it? I don't know how to add two.
Reply
#4

Your just formatting one string with some text and reformatting the same one with another variable.

If you want to use the same string but send the message to the player then u would do:

pawn Код:
format(string, sizeof(string), "[CAPTURE] {15FF00}%s{FF0000} has been taken over!", ZoneName(checkpointid));
SendClientMessageToAll(green ,string);
format(string, sizeof(string), "You get {FFFF00}+3 score, +20 armor and $2500{FFFFFF} for capturing zone {15FF00}%s!", ZoneName(checkpointid));
SendClientMessage(playerid, green ,string);
Reply
#5

Worked! Thanks=]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)