Join Message Problem.
#5

Quote:
Originally Posted by UnDetectable
Посмотреть сообщение
Код:
CMD:setmessage(playerid,params[])
{
	new accent[128], string[128];
        if(sscanf(params,"s[128]",accent)) return SendClientMessage(playerid, -1, "Usage: /setmessage [custom message]");
   	format(string, sizeof(string), "You have set your Join Message to: %s", accent);
	SendClientMessage(playerid, -1, string);
	format(PlayerInfo[playerid][personalmsg], 128, "%s", accent);

	return 1;
}
Код:
public OnPlayerConnect(playerid)
{
    new Message[256];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(Message, sizeof(Message), "%s (%s) joined!", pName, PlayerInfo[playerid][personalmsg]);
    SendClientMessageToAll(-1, Message);
    return 1;
}
About your register thing which is >
Код:
new Stats[1000], string[128], accent;
 INI_WriteString(File,"Accent", "The New Player");
PlayerInfo[playerid][personalmsg] = accent;
Make it like this:
Код:
format(PlayerInfo[playerid][personalmsg], 128, "%s", "The New Player");
The register part, don't work.


Edited; its working now. thanks
Reply


Messages In This Thread
Join Message Problem. - by DerickClark - 16.08.2015, 23:09
Re: Join Message Problem. - by xVIP3Rx - 16.08.2015, 23:18
Re: Join Message Problem. - by DerickClark - 16.08.2015, 23:30
Re: Join Message Problem. - by UnDetectable - 16.08.2015, 23:40
Re: Join Message Problem. - by DerickClark - 16.08.2015, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)