12.04.2014, 15:47
pawn Код:
(2072) : error 035: argument type mismatch (argument 1)
(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_WriteString(file, "personalmsg", PlayerInfo[playerid][JoinMessage]);
INI_Close(file);
return 1;
}
1:
pawn Код:
INI_WriteString(file, "personalmsg", PlayerInfo[playerid][JoinMessage]);
pawn Код:
INI_Close(file);