12.04.2014, 15:29
Quote:
|
Код:
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;
}
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;
}


