PDA

View Full Version : PAWN classes


Mellnik
16/09/2012, 12:22 AM
----

trapstar2020
16/09/2012, 12:23 AM
what is that thats has nothing to do with class idk what is that explain it

Mellnik
16/09/2012, 12:26 AM
what is that thats has nothing to do with class idk what is that explain it

Never heard classes and objects? Im just amazed how simple pawn is :S

BadgerLedger
16/09/2012, 12:27 AM
Hey ehm are classes possible in samp pawn?

I did it like:

class Test {
public:
void Test2() {
print("Shit");
}
}


But I get few errors :p


forward Test();
public Test()
{
print("Print goes here");
}

i think thats what you mean?

Mellnik
16/09/2012, 12:29 AM
forward Test();
public Test()
{
print("Print goes here");
}

i think thats what you mean?

No thats not what i mean

trapstar2020
16/09/2012, 12:32 AM
do you add playerclass
and createobjects??????????????????????? idk what ur talking about explain what u want????

Mellnik
16/09/2012, 12:34 AM
do you add playerclass
and createobjects??????????????????????? idk what ur talking about explain what u want????
Forget about it

Vince
16/09/2012, 12:53 AM
Remember that Pawn is not C. It was designed to run on embedded systems. So no, OO programming is not possible in Pawn. At least not by default. I believe there are some custom implementations in the plugin or include sections.