#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


Messages In This Thread
C++ - by Falcon Interceptor - 07.07.2010, 13:23
Re: C++ - by RyDeR` - 07.07.2010, 13:32
Re: C++ - by Falcon Interceptor - 07.07.2010, 13:37
Re: C++ - by RoBo - 07.07.2010, 16:37
Re: C++ - by Tannz0rz - 08.07.2010, 05:45
Re: C++ - by Westie - 08.07.2010, 12:43
Re: C++ - by Falcon Interceptor - 08.07.2010, 16:11
Re: C++ - by Westie - 09.07.2010, 11:48
Re: C++ - by Falcon Interceptor - 09.07.2010, 12:07
Re: C++ - by PeteEnis - 12.07.2010, 20:55

Forum Jump:


Users browsing this thread: 2 Guest(s)