05.07.2010, 15:50
(
Last edited by Carlton; 13/07/2010 at 06:24 PM.
)
Information
<Removed for market linking>
What can this be used for?
Like I said above, to connect the Simple Machines forums to a SA-MP server and collect data from the forums and display them ingame or whatever you'd like to do with them.
Functions
No they're not really natives, just something I like to do when creating functions.
The bool:_RealName function is for name reasons on the forum, if you didn't notice you can change your display name on this forum and on any other SMF forum. If RealName is true, then it will use the real name of the account, and not the display name!
Thanks for the suggestion on creating a account, here's the function below, insert this into CSMF
Installation
On top of your script.
In OnGameModeInit() or OnFilterScriptInit()
In CSMF.inc, configuration.
Download
http://solidfiles.com/d/af33/download
Credits
I - Creating the functions.
Seif - Helping with some problems.
<Removed for market linking>
What can this be used for?
Like I said above, to connect the Simple Machines forums to a SA-MP server and collect data from the forums and display them ingame or whatever you'd like to do with them.
Functions
No they're not really natives, just something I like to do when creating functions.
Code:
native OnCSMFInit(); native FormatRealName(bool:_RealName, _field[], _name[], _id); native GetMemberNameByID(_id[], bool:_RealName); native GetMemberIDByName(_name[], bool:_RealName); native GetMemberUMessagesByID(_id, bool:_RealName); native GetMemberUMessagesByName(_name[], bool:_RealName); native GetMemberGroupByID(_id, bool:_RealName); native GetMemberGroupByName(_name[], bool:_RealName); native GetMemberPostsByID(_id, bool:_RealName); native GetMemberPostsByName(_name[], bool:_RealName); native GetMemberIPByName(_name[], bool:_RealName); native GetMemberIPByID(_id, bool:_RealName); native GetMemberIP2ByName(_name[], bool:_RealName); native GetMemberIP2ByID(_id, bool:_RealName); native CheckUserNameAndPassword(_name[], Password__[], bool:_RealName); native GetForumNews(); native GetForumSMTP_Username(); native GetForumSMTP_Port(); native GetCategoryNameByID(_id); native GetBoardNameByID(_id); native GetBoardIDByName(_name[]); native GetBoardCategoryByID(_id); native GetBoardCategoryByName(_name[]);
Thanks for the suggestion on creating a account, here's the function below, insert this into CSMF
Quote:
pawn Code:
PS: Insert this into the CSMF, it will bring no errors that way. |
On top of your script.
Code:
#include <CSMF>
Code:
OnCSMFInit();
Code:
#define SMF_HOST "localhost" #define SMF_DB "smf" #define SMF_USER "root" #define SMF_PASSWORD ""
http://solidfiles.com/d/af33/download
Credits
I - Creating the functions.
Seif - Helping with some problems.