convert dini to y_Ini
#8

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
Still 2 errors
pawn Код:
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

@Bool, I have tried your code.

pawn Код:
(2071) : warning 213: tag mismatch
(2072) : warning 213: tag mismatch
(2073) : error 035: argument type mismatch (argument 1)
(2074) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Yeah uhh, I didn't actually fix it for you. I told you what I thought was wrong.

This compiles for me.
Код:
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, "personalmsg", params);
    INI_Close(file);
    return 1;
}
Take note though, I'm not actually saving the JoinMessage, but I am writing it to INI file, so when the player connects(Because it's a join message, right) Load it from the INI File then and assign it to PlayerInfo[playerid][JoinMessage];
Reply


Messages In This Thread
convert dini to y_Ini - by DerickClark - 12.04.2014, 15:21
Re: convert dini to y_Ini - by Lidor124 - 12.04.2014, 15:25
Re: convert dini to y_Ini - by DerickClark - 12.04.2014, 15:29
Re: convert dini to y_Ini - by Lidor124 - 12.04.2014, 15:45
Re: convert dini to y_Ini - by DerickClark - 12.04.2014, 15:47
Re: convert dini to y_Ini - by bool - 12.04.2014, 15:56
Re: convert dini to y_Ini - by DerickClark - 12.04.2014, 16:03
Re: convert dini to y_Ini - by bool - 12.04.2014, 16:16
Re: convert dini to y_Ini - by DerickClark - 12.04.2014, 16:32
Re: convert dini to y_Ini - by bool - 12.04.2014, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)