C++ scripts are one of the new features of the next version See the screenshot for a preview.
C++ scripts are one of the new features of the next version See the screenshot for a preview.
[quote author=Recycler link=topic=142.msg1059#msg1059 date=1314044574]
C++ scripts are one of the new features of the next version See the screenshot for a preview.
[/quote]
Good for pro scripters.
Game Developer, Modder & Webmaster.
I'm going to be converting efficient librarys soon. Include bits and will make a tutorial to hook callbacks.
Sweet stuff recycler Looks pretty nice to be coding with C++ some plugins. I like it, might do both C++ and PAWN
Thanks a lot
Sorry for this double post:
Can you release the example format and the includes to making a plugin? And also include how to install it to the server, this is really interesting.
I will make you the best C++ scripts I can. I <3 C++ 4EVER. Oh, and I might make a NASM script example too. I like nasm alot.
NASM is awesome. I assembled the PAWN abstract machine in NASM ;D
Heres the new scripting facilities. Note that I didn't put in most game functions and callbacks, it's only to show how it will look and work like (no 'official' release):
All files related to scripting
C++ script example
C++ script header, or 'include'
PAWN script example
PAWN script include
The scripts do exactly the same. Click the 'SVN' button to access the raw files
[quote author=Houstin link=topic=142.msg1121#msg1121 date=1314153397]
I will make you the best C++ scripts I can. I <3 C++ 4EVER. Oh, and I might make a NASM script example too. I like nasm alot.
[/quote]
Do you have enough knowledge to make some plugins compatible with Vault-Tec? Like sscanf 2 and mysql/sql?
There are pre-made ones on www.sa-mp.com that you can convert, it'd be damn impressive if you could so we can keep up to the latest and efficient library's.
@Lorenc: I will not be doing anything for PAWN for too many reasons to list here. However, other people may create PAWN wrappers for some of the Vault-MP Standard Library. I suggest PAWN scripters learn about C++0x, as it will be relatively simple to convert their pawn scripts to it and they will be extremely better. Eventually, I may make some tutorials for the transitions.
[quote author=Houstin link=topic=142.msg1216#msg1216 date=1314346090]
@Lorenc: I will not be doing anything for PAWN for too many reasons to list here. However, other people may create PAWN wrappers for some of the Vault-MP Standard Library. I suggest PAWN scripters learn about C++0x, as it will be relatively simple to convert their pawn scripts to it and they will be extremely better. Eventually, I may make some tutorials for the transitions.
[/quote]
sscanf is the primary plugin I need. I can plan on using the old sscanf 1 for PAWN but it doesn't have as many parameters as sscanf2 does. and sscanf2 is a unbelievably plugin. I'll try do something though.
If you want the most efficient code/libraries, then simply use C++. It generates native code, so the speed is uncomparable to anything else. You can have enumerations, custom structures, object orientation, pointers, everything. It's not even that hard, either. C++ features will NOT be removed, unlike PAWN. I would not claim that anything is efficient, unless it is native code. How to learn this amazing thing? www.google.com C++ has the more code written for it than any other language. Anything you can imagine has probably been coded before. And C++ just continues to get updated. C++0x compilers will be complete very soon, and will make it better and easier to learn.