10.11.2011, 16:13
Command finished If you need the code:
pawn Код:
CMD:suggest(playerid, params[])
{
if (isnull(params)) return SendClientMessage(playerid,-1,#Syntax /suggest <suggestion>);
new
_msg[ 128 ],
_msg2[ 128 ],
player_name[ MAX_PLAYER_NAME ];
GetPlayerName(playerid, player_name, MAX_PLAYER_NAME);
format( _msg, sizeof ( _msg ), "Name: %s\r\n", player_name);
format( _msg2, sizeof( _msg2), "Suggestion: %s\r\n",params);
new File: fileToWrite = fopen("suggestions.txt", io_append);
fwrite(fileToWrite,"[New Suggestion]\r\n");
fwrite(fileToWrite, _msg);
fwrite(fileToWrite, _msg2);
fclose(fileToWrite);
return 1;
}