Jump to content

[REACTIE] GTA V C++ Coding Guide


Recommended Posts

Posted

GTA V C++ Coding Guide

Reactie Topic

In dit topic kan je reageren op de GTA V C++ Coding Guide.

Vragen? Opmerkingen? Suggesties? Of wil je gewoon een tutorial aanvragen? Post het gerust smile3.gif

Er komen nog meer tutorials aan knipoog.gif

Posted

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:

Posted

Erg duidelijke en uitgebreide tutorial :) Heel handig voor de beginnende scripter.

  • 3 weeks later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...