SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 23/06/2010, 03:46 PM   #11
iLinx
High-roller
 
Join Date: Jun 2009
Location: Toronto
Posts: 1,504
Reputation: 157
Default Re: [DEV] Python for SA-MP

Quote:
Originally Posted by [SR
Arbash™ | ❶❸❸❼ ]
Quote:
Originally Posted by ev0lutionnn
No it's not, it's incredibly easy to learn, it's typeless, and also has many inbuilt features. Many more than a language like Pawn, anyway.
What did you said TYPELESS
Typeless means that the variables aren't declared with a static type. Example, in a static, strict language like C++, Java, or yes, PAWN, if you declare a variable which stores an integer, it must always store an integer, for the most part (even though there are sometimes ways around this in some bigger languages). In a TYPELESS language a variable can change it's type dynamically.

Example, you could declare a variable at the top of the script storing an integer value, than change it to a string, or a double, or even an array or an object, if your really feeling it. Depends how you look at it, dynamic type can confuse beginner's quite a bit when it comes to arithmetic and other similar functions.
__________________
Servers in Arizona, Virginia, Quebec (Canada), United Kingdom, Netherlands. Over 12,000 served. Free cPanel web hosting is included with ALL servers. ********. *******.
iLinx is offline   Reply With Quote
Old 23/06/2010, 04:03 PM   #12
Mr187
Banned
 
Join Date: Aug 2007
Location: Ottawa, Canada
Posts: 933
Reputation: 11
Default Re: [DEV] Python for SA-MP

Would be another great language to learn, hope its get done .
Mr187 is offline   Reply With Quote
Old 23/06/2010, 04:18 PM   #13
ev0lution
Gangsta
 
ev0lution's Avatar
 
Join Date: Jul 2009
Posts: 696
Reputation: 380
Default Re: [DEV] Python for SA-MP

Quote:
Originally Posted by iLinx
Depends how you look at it, dynamic type can confuse beginner's quite a bit when it comes to arithmetic and other similar functions.
I suppose it depends on where you come from. (programming-wise)
I think Python was one of the first programming languages I learnt, being typeless made it easier for me, and it wasn't difficult to learn other non-typeless(?) languages after that, in fact Python really helped.
__________________
ev0lution is offline   Reply With Quote
Old 23/06/2010, 11:16 PM   #14
iLinx
High-roller
 
Join Date: Jun 2009
Location: Toronto
Posts: 1,504
Reputation: 157
Default Re: [DEV] Python for SA-MP

True, I suppose it really comes down to who you are, the way you think and the way you learn.
Anyways, I look forward to this project. It's about time someone did this, :P
__________________
Servers in Arizona, Virginia, Quebec (Canada), United Kingdom, Netherlands. Over 12,000 served. Free cPanel web hosting is included with ALL servers. ********. *******.
iLinx is offline   Reply With Quote
Old 24/06/2010, 08:51 PM   #15
Agent Smith
Gangsta
 
Agent Smith's Avatar
 
Join Date: Mar 2009
Location: United Kingdom, Kent
Posts: 499
Reputation: 5
Default Re: [DEV] Python for SA-MP

I'm currently learning Python, does this mean that you can use Python for the whole script? If so how do you load it onto the SAMP server.
__________________

Credits to: Zh3r0
Agent Smith is offline   Reply With Quote
Old 24/06/2010, 09:03 PM   #16
Aur0nX390
Little Clucker
 
Join Date: Sep 2009
Posts: 45
Reputation: 0
Default Re: [DEV] Python for SA-MP

Quote:
Originally Posted by Samdudes
I'm currently learning Python, does this mean that you can use Python for the whole script? If so how do you load it onto the SAMP server.
You'd use the plugin.
Aur0nX390 is offline   Reply With Quote
Old 24/06/2010, 09:04 PM   #17
Agent Smith
Gangsta
 
Agent Smith's Avatar
 
Join Date: Mar 2009
Location: United Kingdom, Kent
Posts: 499
Reputation: 5
Default Re: [DEV] Python for SA-MP

ahh and then script the Python in PAWN.
__________________

Credits to: Zh3r0
Agent Smith is offline   Reply With Quote
Old 24/06/2010, 10:03 PM   #18
joemomma53
Gangsta
 
Join Date: Jul 2007
Posts: 678
Reputation: 1
Default Re: [DEV] Python for SA-MP

You would write your servers code in Python if you were to use this plugin.

Well, you could also use pawn if you wanted to I guess, but python <3
joemomma53 is offline   Reply With Quote
Old 24/06/2010, 10:25 PM   #19
Calgon
Godfather
 
Calgon's Avatar
 
Join Date: Jan 2009
Posts: 6,466
Reputation: 1126
Default Re: [DEV] Python for SA-MP

Interesting. Please could you elaborate about what Python threading would be like?
Calgon is offline   Reply With Quote
Old 25/06/2010, 01:07 AM   #20
ev0lution
Gangsta
 
ev0lution's Avatar
 
Join Date: Jul 2009
Posts: 696
Reputation: 380
Default Re: [DEV] Python for SA-MP

Quote:
Originally Posted by Samdudes
ahh and then script the Python in PAWN.
Not really. Python scripts will be completely seperate to everything else.
If you wanted, you could indeed script everything in Python and have no Pawn filterscripts or gamemode running. (although you'd need the Python filterscript and a blank gamemode)
With that said, there's still nothing to stop you using Pawn. You could have both types of scripts running and working perfectly together.
__________________
ev0lution is offline   Reply With Quote
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



All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.