#1

So, I wanted to know if any of you guys have experiences using C++. I know it is similar to PAWN.
I would like to know if you guys uses C++. Thanks

Regards,
Falcon Interceptor
Reply
#2

I started two weeks ago, and actually not difficult but I think it will take a year or something to understand (almost) everything.
My last work was an object streamer. ^^
Reply
#3

Well, sometimes the opening of { and end of the } makes me confused.

Or sometimes forgetting the ";" at the end of a line
Reply
#4

Quote:
Originally Posted by Falcon Interceptor
Посмотреть сообщение
I know it is similar to PAWN.
Well that's news to me, last time I checked C++ was an OOP language whereas PAWN isn't. Huge difference!
Reply
#5

Quote:
Originally Posted by RoBo
Посмотреть сообщение
Well that's news to me, last time I checked C++ was an OOP language whereas PAWN isn't. Huge difference!
He meant similar regarding the syntax, not paradigm.
Reply
#6

If you come to look at it, PAWN is actually an OOP language.

Why?

You have various AMX files, all of which are linked to one virtual machine.

Each AMX file can call functions in other instances, thus each AMX file can be seen as an object.

Edit: I'll make a code example now!

PAWN Gamemode1:
pawn Код:
#include <a_samp>
#pragma semicolon 0


main()
{
}


forward onSomeSortOfCallback()
public  onSomeSortOfCallback()
{
        print("This callback was called.")
}
PAWN Filterscript1:
pawn Код:
#include <a_samp>
#pragma semicolon 0


public  OnPlayerConnect(playerid)
{
        CallRemoteFunction("onSomeSortOfCallback")
}
Guess what happens when a player connects? Oh wait, it's called! Thus it's an OOP language.
Reply
#7

Alright, I'm not a very good scripter / programmer. I haven't learn PAWN pretty well
Aswell as C++. I'm just going to start using C++ maybe soon.

So I wanted to ask what is "OOP Language"?

Thanks
Reply
#8

An OOP language is a language that is object orientated (you can use objects for almost anything)

As you already probably know, C++ is indeed object orientated.
Reply
#9

Alright. I understand now.

Thanks Westie and guys.

Regards
Reply
#10

Quote:
Originally Posted by Westie
Посмотреть сообщение
If you come to look at it, PAWN is actually an OOP language.

Why?

You have various AMX files, all of which are linked to one virtual machine.

Each AMX file can call functions in other instances, thus each AMX file can be seen as an object.

Guess what happens when a player connects? Oh wait, it's called! Thus it's an OOP language.
You know that a key aspect of oop languages is that you can have multiple instances of one object?
Calling pawn an oop language is simply ridiculous.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)