convert dini to y_Ini
#3

Quote:
Originally Posted by Lidor124
Посмотреть сообщение
Код:
COMMAND:joinmessage(playerid, params[])
{
    new string[128], file[128], pName[MAX_PLAYER_NAME];
    if(isnull(params)) return SendClientMessage(playerid, COLOUR_RED, "USAGE: {FFFFFF}/joinmessage [message]");
    format(string, sizeof(string), "You have set your Join Message to: %s", params[0]);
    SendClientMessage(playerid, -1, string);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(file, sizeof(file), "accounts/%s.ini", pName);
    new INI:File = INI_Open(file);
    INI_SetString(file, "personalmsg", PlayerInfo[playerid][JoinMessage]);
    INI_Close(file);
    return 1;
}
btw read this tutorial:
https://sampforum.blast.hk/showthread.php?tid=175565
pawn Код:
(2072) : error 017: undefined symbol "INI_SetString"
(2073) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
COMMAND:joinmessage(playerid, params[])
{
    new string[128], file[128], pName[MAX_PLAYER_NAME];
    if(isnull(params)) return SendClientMessage(playerid, COLOUR_RED, "USAGE: {FFFFFF}/joinmessage [message]");
    format(string, sizeof(string), "You have set your Join Message to: %s", PlayerInfo[playerid][JoinMessage]);
    SendClientMessage(playerid, -1, string);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(file, sizeof(file), "accounts/%s.ini", pName);
    INI_SetString(file, "personalmsg", PlayerInfo[playerid][JoinMessage]);
    INI_Close(file);
    return 1;
}
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)