SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 13/08/2012, 01:32 PM   #11
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,483
Reputation: 186
Default Re: Scripting launge similar to Pawn

Quote:
Originally Posted by Y_Less View Post
IN WHAT WAY similar? That didn't answer my question at all!
Ops sorry..


I don't understand full what u mean.


Edit: I think it's syntax.
davve95 is offline   Reply With Quote
Old 13/08/2012, 02:39 PM   #12
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 18,140
Reputation: 2540
Default Re: Scripting launge similar to Pawn

Quote:
Originally Posted by king_hual View Post
The closest one to pawn in syntax is C if I'm not mistaking, since both of them are neither object oriented nor weakly typed.
C is very weakly typed, and PAWN has no types. If you want strong typing look up Haskell. In C:

Code:
float b = 27;
int a = (int)b;
struct other_s * c = (struct other_s *)a;
There is almost no way to do that in Haskell (it CAN be done, but is very hard and requires explicitly unsafe low-level and non-portable functions). And in PAWN there are only tags that are just as easy to mess with.

As for syntax (what the code looks like) vs other things, anyone using PAWN should also know that there are no types (because all your variables are 32bit cells) and that there is no dynamic memory (because there isn't), so they could have been points of interest too.
Y_Less is offline   Reply With Quote
Old 13/08/2012, 04:45 PM   #13
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,483
Reputation: 186
Default Re: Scripting launge similar to Pawn

Okay now I know!, yeah I meaned syntax!.
davve95 is offline   Reply With Quote
Old 13/08/2012, 08:01 PM   #14
KingHual
High-roller
 
KingHual's Avatar
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 1,869
Reputation: 867
Default Re: Scripting launge similar to Pawn

Quote:
Originally Posted by Y_Less View Post
C is very weakly typed, and PAWN has no types. If you want strong typing look up Haskell. In C:

Code:
float b = 27;
int a = (int)b;
struct other_s * c = (struct other_s *)a;
There is almost no way to do that in Haskell (it CAN be done, but is very hard and requires explicitly unsafe low-level and non-portable functions). And in PAWN there are only tags that are just as easy to mess with.

As for syntax (what the code looks like) vs other things, anyone using PAWN should also know that there are no types (because all your variables are 32bit cells) and that there is no dynamic memory (because there isn't), so they could have been points of interest too.
I'm not really into functional languages and I don't find them useful, and yeah, my bad.
__________________
(c) good image not stolen

I always suspected this place was a bullshit hugbox for wapanese furries with self-diagnosed aspergers, but every now and then I'm provided with concrete evidence.
KingHual is offline   Reply With Quote
Old 14/08/2012, 08:42 AM   #15
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,483
Reputation: 186
Default Re: Scripting launge similar to Pawn

Suggestions?
davve95 is offline   Reply With Quote
Old 14/08/2012, 08:50 AM   #16
KingHual
High-roller
 
KingHual's Avatar
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 1,869
Reputation: 867
Default Re: Scripting launge similar to Pawn

C obviously
__________________
(c) good image not stolen

I always suspected this place was a bullshit hugbox for wapanese furries with self-diagnosed aspergers, but every now and then I'm provided with concrete evidence.
KingHual is offline   Reply With Quote
Old 14/08/2012, 08:55 AM   #17
Mr.Tony
Huge Clucker
 
Mr.Tony's Avatar
 
Join Date: Feb 2012
Location: Africa
Posts: 351
Reputation: 46
Default Re: Scripting launge similar to Pawn

Quote:
Originally Posted by davve95 View Post
Suggestions?
Use C+ or C++
__________________
Mr.Tony is offline   Reply With Quote
Old 14/08/2012, 09:32 AM   #18
KingHual
High-roller
 
KingHual's Avatar
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 1,869
Reputation: 867
Default Re: Scripting launge similar to Pawn

Quote:
Originally Posted by Mr.Tony View Post
Use C+ or C++
OK, what the fuck is C+? I've honestly never heard of it
__________________
(c) good image not stolen

I always suspected this place was a bullshit hugbox for wapanese furries with self-diagnosed aspergers, but every now and then I'm provided with concrete evidence.
KingHual is offline   Reply With Quote
Old 14/08/2012, 03:24 PM   #19
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,483
Reputation: 186
Default Re: Scripting launge similar to Pawn

Thanks!
davve95 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
The best way to learn PAWN scripting sajk Scripting Help 13 17/08/2012 03:52 AM
[SCRIPTING HELP] Steve's Pawn Stevo127 Scripting Help 14 16/02/2012 02:55 PM
Computer changes launge davve95 Everything and Nothing 6 03/10/2011 07:48 AM
pawn scripting ConsoleX General 2 13/03/2011 12:05 AM


All times are GMT. The time now is 09:47 AM.


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