PAWN classes
#1

----
Reply
#2

what is that thats has nothing to do with class idk what is that explain it
Reply
#3

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
Reply
#4

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?
Reply
#5

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
Reply
#6

do you add playerclass
and createobjects?? idk what ur talking about explain what u want?
Reply
#7

Quote:
Originally Posted by trapstar2020
Посмотреть сообщение
do you add playerclass
and createobjects?? idk what ur talking about explain what u want?
Forget about it
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)