AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   c++ to pawn? easy? (https://forums.alliedmods.net/showthread.php?t=172209)

FOUTA 11-17-2011 03:13

c++ to pawn? easy?
 
ok i dont know if this topic should be in this section so i posted it here since its related to scripting

i am learning at the moment the c++ language and i am pretty good at it (as far as i know :D) so my question is:

i already know that amxmodx plugins requires knowledge in pawn language, but is it hard to learn pawn after learning c++? i mean will the transaction be difficult? cause i really want to start making my own plugins :D

thanks in advance :D

fysiks 11-17-2011 03:19

Re: c++ to pawn? easy?
 
C++ and Pawn have some similarities but it's more important that you have a firm understanding of how to use logic and stuctures in any code in general. If you understand the basic ideas of text based programming then all you really have to do from there is learn a new syntax.

You can find an abundant amount of information for "Pawn Beginners". Please don't ask for links because the question has been ask at least a million times (exagerated of course but that's what it feels like).

ConnorMcLeod 11-17-2011 12:03

Re: c++ to pawn? easy?
 
Then it should be easy for you.

Just read pawn tutorial : http://wiki.amxmodx.org/Pawn

And other wiki : http://wiki.amxmodx.org/Category:Scr...28AMX_Mod_X%29

Especially http://wiki.amxmodx.org/Optimizing_P...X_Scripting%29 it will show you what you have to do in pawn that is not required in c++

FOUTA 11-17-2011 14:43

Re: c++ to pawn? easy?
 
thank you very much :D
i will take my time and read all of these, thanks

FOUTA 11-24-2011 09:50

Re: c++ to pawn? easy?
 
one more thing, modules are coded in C++ right? i think so

and can modules do everything like plugins?? or whats the difference?? thanks :D

jim_yang 11-24-2011 10:01

Re: c++ to pawn? easy?
 
modules can do things which plugins can't.
difference is the efficiency, depend on the layout.
engine -> metamod -> amxx -> plugins -> game mod
metamod hooks engine functions and game functions which game mod calls. then pass it to amxx, then to plugins.
due to the fact of passing parameters, return value checks..., using amxx plugins is much slower than modules.
but plugins are easy to make because of the powerful amxx lib.

rx1983 11-24-2011 10:18

Re: c++ to pawn? easy?
 
you already know C + + and English.
You're two steps ahead of me.


All times are GMT -4. The time now is 08:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.