Raised This Month: $12 Target: $400
 3% 

Is there any pawn code converter?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 10-04-2018 , 10:27   Is there any pawn code converter?
Reply With Quote #1

I just wanted to know is there any program / website which translates (For example) c# to pawn or c++ to pawn.
If there is one, then let me know asap!
thEsp is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-04-2018 , 16:59   Re: Is there any pawn code converter?
Reply With Quote #2

They are different languages, I don't know how you expect to translate object classes into pawn. It's closer to C, but if you look around the docs you will find there are similar enough functions which are easy to replace.
Why do you even need such thing anyway?
__________________
<VeCo> is offline
thEsp
BANNED
Join Date: Aug 2017
Old 10-05-2018 , 08:22   Re: Is there any pawn code converter?
Reply With Quote #3

Quote:
Originally Posted by <VeCo> View Post
They are different languages, I don't know how you expect to translate object classes into pawn. It's closer to C, but if you look around the docs you will find there are similar enough functions which are easy to replace.
Why do you even need such thing anyway?
Im not an good pawn scripter. But I know other programming language. Thats why I need an converter (if exists).
thEsp is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-05-2018 , 10:56   Re: Is there any pawn code converter?
Reply With Quote #4

Quote:
Originally Posted by thEsp View Post
Im not an good pawn scripter. But I know other programming language. Thats why I need an converter (if exists).
If you really know other languages it wouldn't be hard to write your own implementations of the functions you need from there. The syntax and logic is pretty much the same across all of them.
__________________
<VeCo> is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-05-2018 , 10:57   Re: Is there any pawn code converter?
Reply With Quote #5

Quote:
Originally Posted by <VeCo> View Post
If you really know other languages it wouldn't be hard to write
in sourcemod language itself.

I think it would take longer to write a converter than learning the language.
__________________

Last edited by Silvers; 10-05-2018 at 10:58.
Silvers is offline
thEsp
BANNED
Join Date: Aug 2017
Old 10-05-2018 , 15:47   Re: Is there any pawn code converter?
Reply With Quote #6

Quote:
Originally Posted by <VeCo> View Post
If you really know other languages it wouldn't be hard to write your own implementations of the functions you need from there. The syntax and logic is pretty much the same across all of them.
Yep, I totally agree with you tbh. But to learn an programing language you need to know CONTENT of machine/game/application it works. For ex, If someone decides to start pawn scripting, he needs to know content of hl/cs (And other mods). Or If I want to code in C++ I need to know basics of PC.
Pawn is tough imo.
thEsp is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 10-09-2018 , 12:14   Re: Is there any pawn code converter?
Reply With Quote #7

Quote:
Originally Posted by thEsp View Post
Yep, I totally agree with you tbh. But to learn an programing language you need to know CONTENT of machine/game/application it works. For ex, If someone decides to start pawn scripting, he needs to know content of hl/cs (And other mods). Or If I want to code in C++ I need to know basics of PC.
Pawn is tough imo.
Pawn is easy.
__________________
edon1337 is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-12-2018 , 11:00   Re: Is there any pawn code converter?
Reply With Quote #8

If you already know C, you can master Pawn in an instant. It's not as exciting and good as C or C++, but It's easy to learn. Gets the job done.
redivcram is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 11-14-2018 , 09:49   Re: Is there any pawn code converter?
Reply With Quote #9

Quote:
Originally Posted by redivcram View Post
If you already know C, you can master Pawn in an instant. It's not as exciting and good as C or C++, but It's easy to learn. Gets the job done.
Totally agree. If you know C/C++, pawn is a peace of cake.

But if you still like C/C++ there is nothing that can be achieved with pawn that cannot be done with an AMXX/SM/Metamod module. So if you prefer C/C++ go ahead.
__________________

Last edited by Neeeeeeeeeel.-; 11-14-2018 at 10:01.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-14-2018 , 10:14   Re: Is there any pawn code converter?
Reply With Quote #10

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Totally agree. If you know C/C++, pawn is a peace of cake.

But if you still like C/C++ there is nothing that can be achieved with pawn that cannot be done with an AMXX/SM/Metamod module. So if you prefer C/C++ go ahead.
Yeah. But don't expect it to be in a flash, unfortunately, you can only learn more of metamod plugin writing from other plugins. I hope someday that we get a documentation of metamod plugins.
redivcram is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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