[Tutorial] How to create a plugin
#81

Ok thanks again. I'll try it out.
Reply
#82

RyDeR`, May I ask you to write a simple tutorial on creating a plugin using the GDK (When you have some spare time)?

I tried creating one with it and it complied just fine. But I see no messages.. >.>

I'll be really grateful to you.

EDIT: Nvm, CyNiC has helped me with this. An awesome dude.
Reply
#83

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
When does this happen? When you load Visual Studio 2010?
When i try to compile it ...
Reply
#84

I'm dieing to know where can I find some file where it will show all the SA-MP functions without me bothering to copy other sources and getting 46 errors lol.

EDIT:

sampgdk, wow, doesn't even have anything saying How to install!

Do you mind when you have the spare time to simply upload a blank plugin? just including the source so we don't have to redo the steps a thousand times (one with the sampgdk if you can)

thanks ryder, you legend :P
Reply
#85

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Do you mind when you have the spare time to simply upload a blank plugin? just including the source so we don't have to redo the steps a thousand times (one with the sampgdk if you can)
There is a "helloworld" example on Zeexs github, https://github.com/Zeex/sampgdk/tree...les/helloworld

EDIT: Also a blank plugin might not be a good idea, as the files would all need renaming and that can also cause problems.
Reply
#86

AWESOMMMEEE this was actually fun to do
Reply
#87

delete.
The problem is solved. Thank you.
Reply
#88

Awesome!
Reply
#89

@Both previous posts: make sure you have every step. Just remove your current project and try again.
Reply
#90

Where should I place these .cpp and .h files? I'm really new to this and would like to know it step by step :P
Reply
#91

Quote:
Originally Posted by CookieJar
View Post
Where should I place these .cpp and .h files? I'm really new to this and would like to know it step by step :P
This tutorial covers only partial information about plugins. Kyosaur's tutorial though, goes in-depth of the SDK. https://sampforum.blast.hk/showthread.php?tid=295798
Reply
#92

Great thank you I'll try to create something lol.
Reply
#93

Nice tutorial, but I'm getting this error:

Code:
error C2065: 'YourNativeNameHere' : undeclared identifier
What I have to do?

EDIT:

fixed, i've put
Code:
static cell AMX_NATIVE_CALL YourNativeNameHere(AMX *amx, cell *params)
{  
        logprintf("I haz made my first plugin!! :)");
        // Your codes go in here
        return 1; // Change the return value if need
}
over the projectNatives...

Nice tutorial . I think you should make a tutorial how to use sampGDK.
Reply
#94

Thanks a lot more this !
Reply
#95

great tutorial
Reply
#96

You're not pushing all values correctly.
Reply
#97

pawn Code:
1>c:\documents and settings\omnia\my documents\visual studio 2008\projects\samp_plugin\samp_plugin\samp_plugin.cpp(32) : error C2065: 'YourNativeNameHere' : undeclared identifier
Reply
#98

Quote:
Originally Posted by CROSS_Hunter
View Post
pawn Code:
1>c:\documents and settings\omnia\my documents\visual studio 2008\projects\samp_plugin\samp_plugin\samp_plugin.cpp(32) : error C2065: 'YourNativeNameHere' : undeclared identifier
You must put that function before this part:

Code:
AMX_NATIVE_INFO projectNatives[] =
{
   { "YourNativeNameHere" , YourNativeNameHere },
   { 0, 0 }
};
Reply
#99

I can't download me SDK, because the Link is down, have somebody a online Link ?

*Sry for my bad english*

Reply

Great and awesome tutorial,i learn something,tnx for tut,+ rep!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)