SA-MP Forums Archive
class - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: class (/showthread.php?tid=277955)



class - Machida - 20.08.2011

Im making an include, how do i use "class" ?
Its the same as C++ ?
Example :

Code:
#if defined _MCMD_included
    #endinput
#endif
#define _MCMD_included

class CMD {
public:
 // etc.
 
private:
 // etc.

} CMD;
then where i included i can use like: CMD.ETC();
for example ?


Re: class - Lorenc_ - 20.08.2011

The syntax of PAWN is very different to C++

You cannot use classes in this case but yes, you can use includes.


Re: class - Machida - 20.08.2011

So i cant use classes in my includes or anything?