Author |
Message |
Oer The Dragon Novice
Age:37 Gender: Joined: Feb 20 2005 Posts: 95 Location: Norway-Bergen: The city between the seven mountains Offline
|
Posted: Sun Jul 03, 2005 3:26 pm Post subject: Codes |
 |
|
|
|
how do you know what to write to make a plugin do something? like is there a list of commands to write or do you have to figure it out yourself (guessing) lol _________________
 |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Sun Jul 03, 2005 3:32 pm Post subject: |
 |
|
|
|
if you go through all the #includes all the functions are in there. The rest is just basic syntax.
for example in spawns.h we see the headers for the chat functions:
void sendPrivate(Player *player, char *msg);
void sendPrivate(Player *player, BYTE snd, char *msg);
void sendTeam(char *msg);
void sendTeam(BYTE snd, char *msg);
void sendTeamPrivate(Uint16 team, char *msg);
void sendTeamPrivate(Uint16 team, BYTE snd, char *msg);
void sendPublic(char *msg);
void sendPublic(BYTE snd, char *msg);
void sendPublicMacro(char *msg);
void sendPublicMacro(BYTE snd, char *msg);
void sendChannel(char *msg); // #;Message
void sendRemotePrivate(char *msg); // :Name:Messsage
void sendRemotePrivate(char *name, char *msg); |
so if we wanted to send a public message we could just call sendPublic with a char* and it would send it.
so like
char* helloMessage = "hello";
sendPublic(helloMessage);
or simply
sendPublic("hello"); _________________ SubSpace Discretion: A Third Generation SubSpace Client |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Sun Jul 03, 2005 4:26 pm Post subject: |
 |
|
|
|
Ya like with me learning C++ I was wondering the same thing. I think we get this stuff in the tutorial on http://catid.ssihosting.com/ |
|
Back to top |
|
 |
Oer The Dragon Novice
Age:37 Gender: Joined: Feb 20 2005 Posts: 95 Location: Norway-Bergen: The city between the seven mountains Offline
|
Posted: Mon Jul 04, 2005 2:27 am Post subject: |
 |
|
|
|
Quote: | if you go through all the #includes all the functions are in there. The rest is just basic syntax. |
Thanks , didn't know that |
|
Back to top |
|
 |
|