Jump to content

[REACTIE] GTA V C++ Coding Guide


Crypteq

Recommended Posts

Ziet er erg overzichtelijk en handig uit! De tutorial over hoe een nieuw project aan te maken is ook zeker voor mij nog handig, aangezien ik altijd redelijk veel moest copy pasten van het Native Trainer-project en er dan wel wat mis kan gaan. :puh:

Link to comment
Delen op andere websites

  • 3 weken later...

I followed what you said in the private message now I am getting this build error.

1>------ Rebuild All started: Project: Hello_WorldV1, Configuration: Release x64 ------

1> main.cpp

1>main.cpp(1): fatal error C1083: Cannot open include file: '.. \ .. \ inc \ main.h': No such file or directory

1> script.cpp

1>script.cpp(9): error C2146: syntax error : missing ';' before identifier 'Main'

1>script.cpp(9): error C2182: 'Script' : illegal use of type 'void'

1>script.cpp(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>script.cpp(12): warning C4508: 'Main' : function should return a value; 'void' return type assumed

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

As for the code you showed in the tutorial, I have typed it out manually & tried pasting it. Get the same result.

I am using C++ Development Settings in Microsoft Visual Studio Professional 2013. I've looked on google and it appears Visual Basic might have problems installing the compilers correctly. But I wanna be sure I am not making mistakes.

My path to main.cpp is as followed

C:\ScriptHookV\Hello_WorldV1\Hello_WorldV1

My path to the inc & lib folders are as followed

C:\ScriptHookV\

I've even added the folders as Additional Directories so I am at a loss.

Link to comment
Delen op andere websites

Een reactie plaatsen

Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.

Gast
Op dit onderwerp reageren...

×   Je hebt text geplaatst met opmaak.   Opmaak verwijderen

  Only 75 emoji are allowed.

×   Je link is automatisch ingevoegd.   In plaats daarvan weergeven als link

×   Je vorige bewerkingen zijn hersteld.   Alles verwijderen

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent actief   0 leden

    • Er zijn hier geen geregistreerde gebruikers aanwezig.
×
×
  • Create New...