Join Message not reading?
#1

Topic says it.
pawn Код:
INI_String("JoinMessage",PlayerInfo[playerid][JoinMessage], 28);
pawn Код:
COMMAND:joinmessage(playerid, params[])
{
    new string[128], pName[MAX_PLAYER_NAME], locfile[32];
    if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: {FFFFFF}/joinmessage [message]");
    format(string, sizeof(string), "You have set your Join Message to: %s", params);
    SendClientMessage(playerid, -1, string);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(locfile, sizeof(locfile), "accounts/%s.ini", pName);
    new INI:file = INI_Open(locfile);
    INI_WriteString(file, "JoinMessage", params);
    INI_Close(file);
    return 1;
}
pawn Код:
format(Message, sizeof(Message), "(%s) join message", PlayerInfo[playerid][JoinMessage]);
Reply


Messages In This Thread
Join Message not reading? - by DerickClark - 30.04.2014, 14:02
Re: Join Message not reading? - by Dignity - 30.04.2014, 14:05
Re: Join Message not reading? - by DerickClark - 30.04.2014, 14:09
Re: Join Message not reading? - by DerickClark - 30.04.2014, 21:39
Re: Join Message not reading? - by Dignity - 30.04.2014, 21:43
Re: Join Message not reading? - by DerickClark - 30.04.2014, 21:45
Re: Join Message not reading? - by DerickClark - 01.05.2014, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)