11.12.2010, 03:57
Hello again. I seem to be having an issue here with "format" and "SendClientMessage"... I have this:
I don't know what has changed, but it's begun acting up on me now even without the color embedding functions. It seems to be that the whole message isn't being sent to the client. I tried using "GetPlayerName" instead of my custom function, which didn't work either. If I format a string, it won't send! I can do this:
Although using "format" doesn't work. For those interested, this is the "GetName" function:
EDIT: I tried using "print" as well, didn't work.
EDIT 2: I'm currently running 0.3c RC4-2.
pawn Код:
format(string, sizeof(string), "Welcome to {C2A2DA}Relentless Gaming{FF9900}, %s! Your account information has been loaded, continuing current life...", GetName(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Sup dude?");
pawn Код:
stock GetName(playerid)
{
new name[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid)) GetPlayerName(playerid, name, sizeof(name));
else name = "Disconnected";
return name;
}
EDIT 2: I'm currently running 0.3c RC4-2.