ErgoProxy Posted July 10, 2015 Share Posted July 10, 2015 (edited) I found that sdk for GTA SA in this forum https://github.com/DK22Pac/plugin-sdk I want to know how to implement it in my c++ msvc project and use functions like GiveWeapon(). Could you help me please? EDIT: I managed to implement it but how do I give a weapon to my player. CPed::GiveWeapon(WEAPON_AK47, 30, true); When I want to call this function I get an error Error C2352: illegal call of non-static member function Edited July 10, 2015 by ErgoProxy Link to comment Share on other sites More sharing options...
KELASHI Posted July 11, 2015 Share Posted July 11, 2015 (edited) Basic C++ thing. It's a non-static class member function so you have to call it by a class(CPed here) object: FindPlayerPed()->GiveWeapon(WEAPON_AK47, 30, true); Edited July 11, 2015 by NcShane Link to comment Share on other sites More sharing options...
ErgoProxy Posted July 11, 2015 Author Share Posted July 11, 2015 Basic C++ thing. It's a non-static class member function so you have to call it by a class(CPed here) object: FindPlayerPed()->GiveWeapon(WEAPON_AK47, 30, true); Thank you sir, thats exactly what I wanted. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now