C++ scripts are one of the new features of the next version :D See the screenshot for a preview.
Printable View
C++ scripts are one of the new features of the next version :D 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 :D See the screenshot for a preview.
[/quote]
Good for pro scripters.
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.
Houstin what IDE and compiler do you use?
I use Visual Studio 2010 for my projects that don't need to be cross compatible. For my vaultmp serverside projects, though, I will use Code::Blocks so it'll be easier to write and compile things for unix. Debian Linux is great for dedicated servers.
[quote author=Houstin link=topic=142.msg1400#msg1400 date=1314605288]
I use Visual Studio 2010 for my projects that don't need to be cross compatible. For my vaultmp serverside projects, though, I will use Code::Blocks so it'll be easier to write and compile things for unix. Debian Linux is great for dedicated servers.
[/quote]
Ah okay, CodeBlocks is great although I can never seem to understand developing a windows application in C++ mainly due to it being a mindf**k
I'll start my programing class monday
[quote author=Dantiko link=topic=142.msg3309#msg3309 date=1318352901]
I'll start my programing class monday
[/quote]
Have some good years of learning, hope that you are not hoping to much because that only works in your disadvantage i mean with helping in the project.
I don't really get it. VaultMP supports both PAWN and C++?
[quote author=TommyB link=topic=142.msg3317#msg3317 date=1318372138]
I don't really get it. VaultMP supports both PAWN and C++?
[/quote]
Yes.
Will they be used together? Or will it just be "You script your server with PAWN, or C++."
[quote author=TommyB link=topic=142.msg3330#msg3330 date=1318401866]
Will they be used together? Or will it just be "You script your server with PAWN, or C++."
[/quote]
You get to have it your way. ( mix them up, or just use one )
You can run as many scripts written in C++ / PAWN parallel as you want (in case of the results of callbacks, the last script defined will override the previous callback results). You can even build simple interfaces to scripts ;)
Ahh, I get it now. Thanks for the help!