12.04.2014, 16:16
(
Последний раз редактировалось bool; 12.04.2014 в 16:20.
Причина: I spelt compiles wrong
)
Quote:
Still 2 errors
pawn Код:
@Bool, I have tried your code. pawn Код:
|
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; }