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

Programming for starters


Post New Thread Reply   
 
Thread Tools Display Modes
TwinRraZzorR
Member
Join Date: Apr 2009
Old 10-28-2009 , 00:49   Re: Programming for starters
Reply With Quote #81

Quote:
Originally Posted by pringels View Post
The guide is so confusing.. 0.o
Agreed , and it's true , for ppls who don't have any idea of programing before .

The topic give definition of things ,for me it looks like a kind of reference, well illustrated .

In my opinion , it is not enough to just give liste of definitions, but rather to share expertise, make us love the thing, by giving examples , in other words : how to implement an idea, this is what I mean .

How to go from point A to point B, how to optimize our code and how to include more improvements if we want , and of course show the common errors to be avoided

> message to coders team thanks for the efforts , and please make more tutorials about :
how to proceed , how to organize work , and how to think like a scripter
__________________


Last edited by TwinRraZzorR; 10-28-2009 at 01:15.
TwinRraZzorR is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-05-2011 , 09:05   Re: Programming for starters
Reply With Quote #82

What's the range for integer ? How many bits has?
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-05-2011 , 15:00   Re: Programming for starters
Reply With Quote #83

Link

Pawn uses a signed 32-bit integer

Code:
Signed: From −2,147,483,648 to 2,147,483,647
__________________

Last edited by Bugsy; 05-05-2011 at 15:29.
Bugsy is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 06-09-2011 , 16:54   Re: Programming for starters
Reply With Quote #84

You don't mention it, but it might be useful for someone new to programming to know how to create an array using progressive initialization.

This was taken from the Pawn manual.

Code:
new a[10] = { 1, ... } // sets all ten elements to 1
new b[10] = { 1, 2, ... } // b = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
new c[8] = { 1, 2, 40, 50, ... } // c = 1, 2, 40, 50, 60, 70, 80, 90
new d[10] = { 10, 9, ... } // d = 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 06-10-2011 , 06:05   Re: Programming for starters
Reply With Quote #85

Nice! Thanks.
__________________
ehha is offline
makavelli
Senior Member
Join Date: Nov 2006
Location: Belgium
Old 01-16-2012 , 09:48   Re: Programming for starters
Reply With Quote #86

Quote:
Originally Posted by joaquimandrade View Post
I think that the big difference in mine is the approach that i had. I still don't know if it works right but it's certainly not normal.
Yes indeed,
you did very well on this approach.
When i opend an sma file the first time i asked myself wtf is all this lol :p
after searching and searching i finally started understanding a lil but with your tutorial i understand it just well enough so it start making sence :p

I'd say your aproach was very well done

++K <3!

do you know of such other tutorials that helps the very beginners of scripting like me?
I have found a few tutorials but they are hard to comprehend
makavelli is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 01-16-2012 , 10:06   Re: Programming for starters
Reply With Quote #87

makavelli
http://www.compuphase.com/pawn/pawn.htm
http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf
__________________

Last edited by DarkGL; 01-16-2012 at 10:06.
DarkGL is offline
makavelli
Senior Member
Join Date: Nov 2006
Location: Belgium
Old 01-16-2012 , 10:33   Re: Programming for starters
Reply With Quote #88

hmm what is the first link you gave me?
and the second one is a whole book? i dont think that is very "newbfriendly" but thank you anyway
makavelli is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 01-16-2012 , 11:03   Re: Programming for starters
Reply With Quote #89

In first site you can find few information and links to sites about pawn
__________________
DarkGL is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-16-2012 , 16:14   Re: Programming for starters
Reply With Quote #90

Quote:
Originally Posted by makavelli View Post
do you know of such other tutorials that helps the very beginners of scripting like me?
Just about everything is listed here.
__________________
fysiks 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 21:53.


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