View Single Post
Primpy Primpy's Avatar

JCF Member

Joined: Nov 2014

Posts: 843

Primpy is an asset to this forumPrimpy is an asset to this forum

Jan 9, 2015, 09:36 AM
Primpy is offline
Reply With Quote
Quote:
Originally Posted by Violet CLM View Post
Snippets are not specially defined units of any kind, they're just the bare minimum amount of code needed to fulfill one function or another. Say you're looking at Snippet A:
Code:
void onPlayer(jjPLAYER@ play) {
    doSomething(); //abstraction; obviously there is no built-in function with this name, so it'd have to be defined elsewhere in the file
}
and Snippet B:
Code:
void onPlayer(jjPLAYER@ play) {
    doSomethingElse();
}
then you "add more than one snippet" by writing:
Code:
void onPlayer(jjPLAYER@ play) {
    doSomething();
    doSomethingElse();
}
I see. I'll try to do that later. Thanks
__________________

"Floppy ears and a big butt?" - Slaz