PAWN classes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PAWN classes (
/showthread.php?tid=377946)
---- -
Mellnik - 15.09.2012
----
Re: PAWN classes -
trapstar2020 - 15.09.2012
what is that thats has nothing to do with class idk what is that explain it
AW: Re: PAWN classes -
Mellnik - 15.09.2012
Quote:
Originally Posted by trapstar2020
what is that thats has nothing to do with class idk what is that explain it
|
Never heard classes and objects? Iґm just amazed how simple pawn is :S
Re: PAWN classes -
BadgerLedger - 15.09.2012
Quote:
Originally Posted by Mellnik
Hey ehm are classes possible in samp pawn?
I did it like:
Код:
class Test {
public:
void Test2() {
print("Shit");
}
}
But I get few errors 
|
Код:
forward Test();
public Test()
{
print("Print goes here");
}
i think thats what you mean?
AW: Re: PAWN classes -
Mellnik - 15.09.2012
Quote:
Originally Posted by BadgerLedger
Код:
forward Test();
public Test()
{
print("Print goes here");
}
i think thats what you mean?
|
No thats not what i mean
Re: PAWN classes -
trapstar2020 - 15.09.2012
do you add playerclass
and createobjects







?? idk what ur talking about explain what u want

?
AW: Re: PAWN classes -
Mellnik - 15.09.2012
Quote:
Originally Posted by trapstar2020
|
Forget about it
Re: PAWN classes -
Vince - 15.09.2012
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.