Saturday, March 3, 2012

Last Blog ko na to!! Ah Yeah!!


     Last blog ko na to ahhh pero d ako mag papaalam sa pag gawa ng blog gusto ko din to ipagpatuloy. Mgshare pa din ako sa inyo ng mga topics at mga blog sa inyo. Dahil last blog ko na iiwasan ko na yung madaming dot. hehehehe :D mababawasan na din ang mga dapt namin gawin sa subject na to at sa mga dapt gawin sa mga iba pang mga subject. :D hehehe. Imba ka talaga Sir Ferrer hindi lang about sa subject ang pinapagawa. Natuto din kami magblog dati ko pa kasi alm yung mga blog n yan pero di ko namn nagagawa. Masaya pla ang mg gawa ng blog kahit wala namn ata ng view nito ..hehehehe :)  Pero ok lng po basta meron na pasok kahit isa lng . hehehehe :) Malapit na matapos ang MIS pero dami pa kami gagawin sa subject na to . :) Sa mga nagawa namin blog ni khen subrang dami namin natutunan sa about sa ibat ibang mga topic na bibibigay ni Sir  Kaya maraming salamat sa iyo Sor Ferrer. Dami ko nalamn sa abot Canon at Nikon, Android , Symbain at mga iba mga programming language..hehehehe. at marami pang mga topic. para malamn nyo just view yung mga blog namin na ka post sa baba ni tong blog na ito. hehehehe :)


       Dahil sa paggawa ko ng blog dami din kami natutunan ni khen at na puntahan tulad nung ng punta kani ng tagaytay para sa blog . hehehe . un yung pinaka the best blog na nagawa namin . :) dami dami namin na puntahan. kasama pa namin si lucky at anje. Salamat din sa kanila :) . Dahil lng sa topic na yung isipin mo nakapunta na kami sa tagaytay ..hehehehehe Nkapagdate pa kami ni khen. :) Grabe! idol ko talaga si Sir Ferrer dami nmn na tutunan. d lang about sa MIS pero sa iba pang dapt malamn na lalamn namin . :) . kaya sir mamimis namin kayo kaming mga CS. pagumalis na kayo .galingan myo sa thesis nyo sa Singapore.hehehe .. Gud luck and Gob Bless . :) 



    Para sa akin si Sir Ferrer ang Master. Imba galing mg turo at Cicso Certified pa. san ka pa :D ..hehehehe . eto na ata ang Teacher na pag ngtuturo na walng dalng mga libro . lahat puro stock knowledge na lahat nasa sa autak na. :) ..hehehehehe . d ako na sisip kasi yun namn at totoo alm yan ng mga classmates ko.. hehehehe :) .. Gusto k0 sana maging teacher ko pa si Sir Ferrer. parang imposible na ata . :) ..hehehehehe. lalos lahat ng araw na nakaklase kami sa MIS at Datacom walang araw na d kami ngtatawanan. hehehehe :) .. Kahit mahirap ang subject. masaya naman ..hehehehe :) ..

   Salamat sa mga natutunan sa Subject na MIS at pa din sa Datacom .hehehehe malapit na matapos ang sem na to.. pero dami pa din gagawin. hehehehe :) .. pero kaya yan ... :) hehehehe . Malapit na kami mg $th Year.. hehehe.. d ko makakalimutan tong year na to .. best Semester to ..hehehehe :) .. Pahirapan pa din sa 500 words ..hehehe .. Maraming Salamat Sir Ferrer . :) .

Source: http://www.permaculture.org.au/images/teacher_cartoon_blackboard.jpg




----------------------
Medialdia, Myrone J.
BSCS 3-1
200912295
-----------------------


This is it!! Last Topic. :D

     This is it!!! Last topic na sa blog, mababawasan nadin ang kelangan gawin every weekend. Pwede naman i-continue ang pag bblog pero wala ng katumbas na grades. Maliit na bawas lang tong blog na to sa mga dapat gawin, dahil madami padin kaming nakatambak na project mostly ng ginagawa sa subjects talaga ni sir Ferrer Hehe. Pero ok lang part naman yun ng pagiging studyante and ramdam ko ni-reready lang kami para sa susunod na taon na mas madami pang gagawin. Naging masaya nman ang MIS hindi nagging boring tulad ng sinabi ni sir Ferrer na boring daw ang subject na un, thanks kay sir hindi naging boring ang subject na MIS. :D 

    In blogging, marami din nman aqng natutunan sa mga topics ng blog na pinapagawa ni sir. Dito natututunan ko yung mga bagay na hindi ko naman balak pag-aralan and minsan dahil din sa topic sa blog kaya kami nkpag gala ng partner ko sa tagaytay. Madami ka matututunan sa mga technical topics na pinapagawa like nung kung paano nagwowork yung search engine, malalaman mo din kung alin ang much better Nikon ba or canon, and ditto ko din mas nalaman ang pagkakaiba ng mga cs, it, at is na courses. Sa mga non-technical topics naman may matututunan kadin, una syempre kung paano yung way mo na mkikipag-interact ka sa mga readers, importante un lalo kung naging ganto ang trabaho mo. Overall, matututunan mo dito ang “proper citation” ng mga phrase na ilalagay mo. Hehe.. 

      Sa instructor palang marami ka na matututunan, hindi lang sa mga lectures na tituturo nya kundi pati din sa mga sinasabi ni sir na bigla ka na lang mapapaisip na tama nga un. Pero honestly speaking talaga nung una naming naging instructor si sir ferrer nahirap ako intindihin mga sinasabi OR sadyang mahirap lang talaga ang automata. Haha.. pero narealized ko siguro kung iba ang naging instructor namin sa subjects na un mas mahihirapan kami. Kapag naging studyante ka ni sir Ferrer bawal ang aanga-anga, matuto magbasa! Hehe. Pero si sir naman eh madali mo lang ma-approach at kausapin, hindi ka pa mabobored sa klase, swerte talaga namin qay sir ferrer (ngite!!) hehehe wag mo lang gagalitin. Sayang lang nga aalis na si sir, kukunin pa naman sana naming technical critic. :)

     Si sir Ferrer yung tipo ng instructor na papasok sa room at magtuturo ng walang bitbit na libro, parang walking encyclopedia, imba din ang Logic. Hehe. Sa dami ng mga sinasabi at tinuturo nya sa amin lalo sa isa naming subject sa kanya na DataCom. Sa dami ng mga dapat pag-aralan sa networking, qay Sir ang dali nya lang magagawa IMBA. Kaya nga Cisco Certified si Sir ee. Nakakatuwa maging Instructor si Sir Ferrer, lagi ka tatawa sa mga kalokohan and love ko nga ung mannerism ni Sir every time na magiisip, yung mapapa-tingin sa taas, mejo kukunot yung noo tapos minsan ang likot pa ng mata. Hehe nakakatuwa un. 

     Aun, kahit sa last topic problemado pa din ako kung paano papaabutin sa 500 words tong nilalagay ko dito. Pag mga gantong topic talaga hirap maka 500, buti kapag technical topic pwede copy-paste basta may sense ang kukunin. Hehe 



Thank you Sir Ferrer sa mga aral. :D










******************
elauria, kenberlyn
200910286
***************

Saturday, February 25, 2012

My Preparation sa Thesis namin ^_^


BABALA!

  • THESIS = SUNOG KILAY (-,-)

Wanted!
  • Adviser
  • Technical Critic

Leave Comment if your interested ~ ~ ~


          Thesis preparation nga ba?? anu yun?? hehehe .. Ang ginagawa lang namin ni Khen sa thesis namin is maghanap na ng adviser at technical critic na hanggang ngayon ay wala din...hehehe .. sipag nuh.. pero naalala ko nung last week na nagsabi kami key Sir Perena na kung pede syang maging technical critic.. d pa namin alam ang sagot nya kasi sabi nya na pagiisipan muna daw yun.. kasi dami na daw nya hinahawak mga Students sa mga thesis din nila ..hehehe .. pero sa namn na pumayag na din si sir para meron na kami kahit technical critic ..hehehehe :) 

         Pero sa akin .. tulad ng mga sinabi ko sa ibang blog ko about sa thesis .. eto na ang simula ng tunay buhay ng Com Sci .. d nakasalalay kung makakatapos ng pagaaral o hindi ..hehehehe.. pero alam ko .. na matatapos namin tong thesis ..hehehe .. :) .. gusto ko din ma pakita sa lahat na tapos na akong mgaral ..at handa na magtrabaho .. para din makatulong sa mama at papa ko ... :) .. Kaya mga klasm8t kaya natin to ..hehehehe .. nan dyan ang tagapag ligtas natin .. si City Hunter..hehehehe :) ... 
      
   Madami nanaman kami nagawa sa thesis namin ..talagang pingisipan namin yung title namin .. hehehe .. nagpunta pa kami ni khen sa La Salle Dasma para lng tumungin ng mga thesis ..hehehe :D .. actually meron na kaming mga idea ni khen sa thesis namin ..hehehe .. :) .. kulang na talaga ehh .. yung adviser at tech crit , .. Sir Ferrer pede pa kau maging adviser or tech crit??? heheheheh :)  ..kung pede lang man po ..hehehe ..aun  pati yung defense nalng sa thesis title namin ... hehehe ... :) .. keylangan na din pag handaan ..hehehe .. kakaya nin yan..alam namin namin yung thesis namin .. kaya namin sagutin lakat ng mga tanong nila ..hehehe .. :)  na pingpray ko na .. ma approve yung title namin .. pra masimulan na namin ..hehehe :) ...

   Anu pa ba mga preperation na ginawa namin ..hehehe :) .. aun ngseach ng mga pede magamit na refference    .. punta sa reading room .. at sa library .. minsan ng sesearch din ako sa internet .. na mga pede magamit na mga importanteng mga site... para makatulong din sa thesis namin ..hehehe :) .. mahirap ba ang thesis?? tanong ko yan sa inyo .. ..hehehehe ..  Maraming pang mga research about sa Game development kaya .. mahaba haba pa tong mga preperation na gagawin naming dalawa ni khen ..hehehe :) .. Update nalng namin kayo ..pag anu na nga ngyayari..hehehe:) ..  pero sa ngayon .. medyo relax pa kami .. kasi d pa namn na nandun sa part .. na nag gagawa na kami ng thesis ..heheh :) .. pero .. keylangan din ng preperation ngayon ..hehe :) .. keylangan pa magpasa ng mga proj ..hehehe :) .. naku .. eto na ata ang pinakamahirap na sem sa lahat .. 3rd year Secong Sem .. :) 


                



----------------------
Medialdia, Myrone J.
BSCS 3-1
200912295
-----------------------



Thursday, February 23, 2012

All about SOPA and PIPA; is it possible to stop piracy 100%? What is your stand?

SOPA and PIPA

        Media companies are always looking for new ways to fight piracy. They've tried suing individual users, getting Internet service providers to take action against subscribers, and working with the U.S. government to shut down domains based in the United States. But none of those actions can stop overseas websites such as The Pirate Bay and Mega Upload from infringing copyrights, or prevent Internet users from accessing those sites. 

        The Stop Online Piracy Act (SOPA) is a United States bill introduced by U.S. Representative Lamar S. Smith (R-TX) to expand the ability of U.S. law enforcement to fight online trafficking in copyrighted intellectual property and counterfeit goods. Provisions include the requesting of court orders to bar advertising networks and payment facilities from conducting business with infringing websites, and search engines from linking to the sites, and court orders requiring Internet service providers to block access to the sites. The law would expand existing criminal laws to include unauthorized streaming of copyrighted content, imposing a maximum penalty of five years in prison. A similar bill in the U.S. Senate is titled the PROTECT Intellectual Property Act (PIPA). Both bills are aimed at foreign websites that infringe copyrighted material. The bills are commonly associated with media piracy, but may also apply to counterfeit consumer goods and medication. 
        Although the bills are similar, SOPA is the more extreme of the two. It defines a "foreign infringing site" as any site that is "committing or facilitating" copyright infringement, whereas PIPA is limited to sites with "no significant use other than" copyright infringement. 


        Some people and search engines like Mozilla are against this bill; other say’s that SOPA and PIPA were both draconian bills. Most people downloading music or movies have a somewhat decent sense of the technology they use and could work around the proposed DNS blocking with ease. Thus, it wouldn't have stopped the piracy. All that would have been left was the government and individuals being able to block sites for the common folk. And I admit that I’m one of those using sites to download music, videos, movies and even applications for free. Yes, it is illegal pero hindi ba ang mga naglalagay ng mga music, videos, movies or applications sa mga file sharing sites ee still nabili pa din ng mga licensed application or mga original copy or disc ng mga music or videos? All they did is share it to folks like us for free via internet. On the contrary, it’s still simply not fair to Artists who spend countless months and even thousands or even millions trying to produce music and movies for the masses that are not being rewarded by those hard efforts. 

        Sa tingin ko this bill will not stop the piracy 100%, madami kasing against dito kahit ang mga major websites not favor sa SOPA, PIPA. Sabi nga ni Brad Burnham, managing partner at the venture capital fund Union Square Ventures "SOPA and PIPA, takes the risk of frivolous litigation... to the entire Internet." and part nadin kasi talaga ng pag gamit ng internet ang pagdownload ng kung ano-ano for free.


Links:

















******************
elauria, kenberlyn
200910286
**************





Friday, February 17, 2012

Android, Symbian, iOS ? which is really a Smarter Phone?

Which is best Smart Phone.

Android > ?
Symbian > ?
IOS > ?


       Pag sinabing Android, Symbian, IOS, BB ang na iisip ko agad ay cellphone. Yang mga ay mga Biggest Company for OS para sa mga Mobile Phone. Na nagbigay ng mga pasabog sa mundo nga mga Mobile Phones dahil sa technology na binibigay ni la sa mga mobile phones. 


Android


        Things get better and better if we look at the available 2011 Android phones. And we smile even more when we check the specs and look of the forthcoming smartphones. We have now powerful computers in our pockets with dual core processors and brilliant display. LG Optimus 3D and HTC Evo 3D brings the 3D glasses free technology in our hands, allowing us to play movies and make pictures as never before. Motorola with Bionic and Atrix promise us a new internet experience, access and browsing fast as blink of an eye. The new king of Android phones is prepared to get crowned, the long awaited Samsung Galaxy SII is decided to take the phone industry into a new era. A lot of voices started whispering that the iPhone killer has born.

        
       Android powers millions of phones, tablets, and other devices and brings the power of Google and the web into your hands. With an amazingly fast browser, cloud sync, multi-tasking, easy ways to connect & share and the latest Google apps (and thousands of other apps available on Android Market) your Android powered device is beyond smart. Arm-wrestling iOS for market share, Android phones come in all different shapes, sizes, and feature sets.



Sample Android Phone:

                                              
                                                      Droid Razr Maxx


Motorola Droid Razr Maxx has a slim, attractive, and durable design with the same gorgeous display, 1.2GHz dual-core processor, and fast Verizon 4G/LTE data speeds as its predecessor. It retains powerful multimedia chops and tight security features.







        Base sa na reseach ko Android phones ay nakikibaglaban sa IOS phones ngayon. Bale sila ang mga na ngungunang Smart Phones sa ngayon. :) .Napaganda ng mga features pag Andriod Phone ang gamit mo. Tulad ng Motorola at Samsung Android phoes yung mga gamit nila. Kaya para sa akin mas gusto ko yung Android Phones. Subrang ganda nya kasi Faster Browser, Cloud Sync pa Multi Tasking easy to connect and Share at marami kang makukuha na mga Apps gamit ang  Cell phone mo kasi yung naman ang maganda diba. Mas Cheap ang Android Phones sa iba tulod ng IPhone.



Symbian

       Symbian mobile phones are those that run the Symbian operating system. Symbian is optimised for both touchscreen and keypad operated phones offering a wider range of phones to choose from.Symbian is a highly advanced mobile computing platform that allows you to customize the user interface, add new content such as social networking shortcuts to the home screen and run an amazing number of different software applications on it, from Sat Nav to Google Maps to Office software.


Sample Symbian Phone:



                                          Nokia N8


nokia-n8 The Nokia N8 is the ultimate Symbian smartphone. It runs the new Symbian ^3 OS and sports the best in hardware. It has a 3.5 inch AMOLED capacitive touchscreen display with a resolution of 360 x 640 pixels. It has an ARM 11 680 MHz processor, a 3D Graphics accelerator and 256 MB RAM. The highlight of the phone is the excellent 12 MP camera with autofocus, Xenon flash and a Carl Zeiss lens which can take shots at a resolution of 4000 x 3000 pixels. It can capture 720p video at 25 FPS. It also has a secondary video call camera.


        Symbian ay isang Operating system para sa mga mobile phones desinged na smart phones. Sa aking na reseach Symbian OS ay madalas ginagamit ng Nokia Company pero ginagamit din sila ng mga iba pang mga Mobile Phone tulad ng Sony Ericson. :D


IOS (Iphone Operating System)


           With its easy-to-use interface, amazing features, and rock-solid stability, iOS is the foundation of iPhone. And even as others try to catch up, the technologies and features built into iOS keep iPhone years ahead.







Elegant and intuitive interface.

You know how to use iPhone from the first time you pick it up. That’s because the revolutionary Multi-Touch interface in iOS was designed for your finger. And the simple, beautiful Home screen is the easiest place to start. From built-in apps to over 500,000 apps available from the App Store. From making a FaceTime call to editing a video with iMovie. Everything you touch is easy, intuitive, and fun.





Notification Center

It’s the one place where you’ll see what’s up. iPhone works with your apps to let you know about missed messages, calendar invitations, friend requests, and more. New notifications appear discreetly at the top of your screen. And you can see a summary of recent notifications when you swipe down from the top of any screen.


Messages with iMessage

Now you can text it up with fellow iPhone, iPad, and iPod touch users running iOS 5. Messages with iMessage are unlimited.1 And secure, too. Talk to all your friends or family at once with group messaging. See who’s reading with delivery and read receipts. And if words aren’t enough, send photos, videos, locations, and contacts

Twitter Integration

Twitter is integrated into iOS 5, so ou can sign in once under Settings and begin tweeting directly from Safari, Photos, Camera, YouTube, and Maps. You can even start typing a friend’s Twitter handle and iOS will autocomplete the rest from your contacts.



Photos

Touch up photos right on your iPhone — without the help of photo editing software on a computer. Crop, rotate, enhance, and remove red-eye. Then organize your shots into albums, so you know exactly where your favorites are when the next photo-sharing opportunity presents itself.



Camera Enhancements
Here’s a photo op for your photo ops. Now you can access the Camera app right from the Lock screen. Use grid lines and pinch-to-zoom gestures to get your shot just right. Focus with a tap. Then press the volume-up button and take your photo.



The world’s largestcollection of mobile apps.


With thousands of apps in practically every category, iOS is the platform for the world’s largest collection of mobile apps. Apple gives third-party developers a rich set of tools and APIs, and they’ve created apps and games that redefine what a mobile device can do. Where do you find these apps? Just browse the App Store on your iPhone and download them with a tap.





      Kung sa Smart Phones ito na siguro ang pinaka maganda sa lahat sa ng mga mobile Phones. Lahat na an dito mga Apps subrang dami malulunod ka sa dami ng mga iabt ibang mga apps para sa Cell Phone mo. Madali pang makaconnect sa Internet at pati yung image at video quality ng IOS phones ay sobrang ganda ng quality . :) Cloud din d2 sa IOS .halos na ng hinahanap mu sa Smart Phone nan dito na. kaya lang sa Presyo nito Subrang mahal kaya konti lang ang nagkakaroon nito. Pero sa city hunter lahat ng artista dun naka Iphone. pati yung walang matirhan na si nana naka Iphone pa din.hehehehe :) ..




----------------------
Medialdia, Myrone J.
BSCS 3-1
200912295
-----------------------

Thursday, February 16, 2012

How was your Valentine’s Day? Happy :) or Sad :( ?


     Valentine’s Day started because of St. Valentine, other stories suggest that Valentine may have been killed for attempting to help Christians escape harsh Roman prisons, where they were often beaten and tortured. And He’s the one who first sent a valentine card to the one he loved secretly. And the letter signed "From your Valentine," an expression that is still in use today. 


     Feb. 14. Valentine’s Day.. Love is in the air. Dapat masaya ang araw na un pero bkit may mga bitter? Dahil walang date? Walang ka-in a relationship? Hindi nman un ang importante, dapat nga every day is a valentine’s day o kung iba man ang religion kahit Hearts Day o Araw ng mga puso na lang. Meron pa din naman mga kaibigan to spend valentine’s day with. 

     Bago pa man dumating ang Valentine’s day nakapag bond na kami ni My, pumunta kami sa mall show ng Jamich.. haha wala lang malapit lang naman sa Sm Rosario eh kaya pwedeng pwede pumunta. And para makapag relax-relax naman kahit papano. 

     Then aun sumapit si Feb.14. How’s my Valentine’s Day nga ba? Syempre masaya.. Lalo na kasama ko mahal kong boyfriend nun, si myrone (yiiieee kinikilig si My. Haha), natural may pasok nun valentine’s day ee.. heheh.. Un lng full sched kami that day kaya aun hindi kmi nkapag date, nagspend na lang kami ng valentine nmin the other day. Nanuod lang kami ng movie sa mall, kasama pa nga dapat nun c Edil, pero unfortunately hindi na sya sumama, secret na lang kung bkt hindi na sya nakasama baka magalit. Hehe. So aun nga nung Feb 14 hindi kami nkapag date pero hindi naman nawala sa amin ang valentine’s spirit, early morning nun yung daily routine naming naghihintayan sa 7/11 ng trece para sabay kami pumasok, late nun si my pero hinintay ko padin syempre pag ako nman late hinihintay padin nya ako. Hehe. Then aun, dumating sya carrying a white rose, nakakatuwa lang kasi akala ko wala sya ibibigay. Akala ko yun na un, pero nung uwian na bumili pa siya ng munchkins pero hindi lang para sakin.. para sa mga pamangkin ko para maiba naman. Hehe and ginawan nya pa ko ng video with message. Nakakatuwa, dahil ibang-iba ang Valentine ko this year compared sa ibang years na wala lng parang ordinary day lang. :) 

Sa mall.. 

Habang hindi pa naman 4:05 (4:05 ang time na pinili namin for The Vow), naglunch muna kami sa Mang Inasal. Syempre yung unlimited rice pinili namin nang makarami, sulit na sulit yun para kay My. Nakakatuwa kasi nakatatlong balik sakanya yung may bitbit ng extra rice, takaw talaga sakin nakaisang balik lang hindi ko pa naubos kaya hindi ako pwede sa mga ganyang unlimited rice or eat all you can, lugi ako. Haha. Sinabihan ko pa sya na wag masyado marami kainin baka manakit nanaman tyan niya umuwi kami ng wala sa oras. Hehe. Then after kumain, naglaro kami sa quantum at natalo ko sya sa basketball dun kahit mas abot nya na ung ring kesa sakin. Haha, wala lang nakakatuwa lang achievement yun para sakin noh. :) 

Sa cinema.. 

Naghihintay na kami nun sa labas ng cinema, dahil The Vow ang papanuorin naming at kasabayan nun is Unofficially youre’s. Syempre ang dami na agad nkapila sa cinema ng unofficially youre’s and sa The vow wala pa pakiramdam tuloy namin kami lang dalawa sa The Vow, haha. Pero aun hanggang sa nag 4:05 na may mga manunuod din naman pla ng The Vow pero hindi puno. Ok lang yun maganda naman yung storya. At Masaya ako kasi kasama ko si Myrone ng araw na un. 





Kaya ang Valentine’s Day ko ay ‘HAHA’. :D




Link:









******************
elauria, kenberlyn
200910286
**************

Saturday, February 11, 2012

All about the Pawn Programming Language

LOOPING 

Loops are basically what the word says they are, it is a piece of code that is created to run more than once. So lets waste no time and dive into what kind of loops there are and how they work.

Note: While this tutorial is for PAWN, loops apply to just about every programming language in existence, and the syntax is almost always the same!

For loop

The for loop is a loop which is to be run an exact amount of times. Lets make a simple example to explain it:
for(new var = 1; var <= 5; var++)
{
    printf("Value of var is now %d", var);
}
print("For loop finished");

So what we’re doing here, is creating a new variable that can only be used in the loop called “var”, then we’re checking if it’s less than or equal to 5 and if it is, run the code inside the curly brackets and increment var by 1. The output of this code is:
Value of var is now 1
Value of var is now 2
Value of var is now 3
Value of var is now 4
Value of var is now 5
For loop finished


Notice anything? Well it’s the exact same output as the while loop! So this is how you would do the same loop in a for loop, it’s a much better way of doing this particular example of code. The same applies for this type of loop too, it will delay any execution of other code until the loop is finished executing.
While loop

The while loop is simple, it checks if a condition is true and while it’s true, it runs a piece of code. It is used for a loop that you don’t know how many times you want it to run. We know how many times the loop will run in this example, but we’ll just use a while loop for the purpose of the example:
new var = 1;
while(var <= 5)
{
    printf("Value of var is now %d", var);
    var++;
}
print("While loop finished");




So what we’re doing here, is creating a new variable with a value of 0. Then we’re making a while loop that checks if var is less than or equal 5, then runs the piece of code in between the curly brackets. The specific output of this piece of code is:
Value of var is now 1
Value of var is now 2
Value of var is now 3
Value of var is now 4
Value of var is now 5
While loop finished


So what we see here is that the loop ran 5 times and the finished. It’s worth understanding that the loop will stop the execution of any other code until it’s finished, as this is one the main causes of unoptimized and poorly coded scripts.

ARRAY

Pawn features basic "arrays". An array is a simple type of aggregate data. This means you can store multiple values in one variable! An array follows the same rules as a regular variable, and it has the same types. It simply can contain multiple values. You define an array with brackets, and how many values it can hold. For example:
//This will declare a variable called "Players" which holds 32 numbers. 
new Players[32]
 
//You can now store values in any of the 32 "slots" this array has.  
// The slots are numbered from 0 to n-1, or in this case, 0 to 31.
//Every slot starts off as 0.
 
//Set slot 0 to 5
Players[0] = 5
 
//Set slot 1 to whatever is in slot 0, in this case, the number 5
Players[1] = Players[0]
 
//This is invalid! 
//Although there are 32 slots, they are numbered from 0 to 31.
//Doing this results in AMX Native Error 4 - AMX_ERR_BOUNDS
// or, it simply won't compile!
Players[32] = 15
 
//This is also totally invalid           
Players[-1] = 6
 
new a = 3
//This is also totally invalid.  
//a must be a constant number.
new BadArray[a]
 
//So this is valid:
const b = 3
new GoodArray[b]
 
//You can also use Compiler Directives (See last section)
 
#define ARRAY_SIZE 3
new Array[ARRAY_SIZE]
Arrays can also be declared with groups of data default, such as:
new Numbers[4] = {0,1,2,3}
//Note: it is important that you make sure the amount of numbers
// you pass and the size of the array match
You can also use any data type with arrays:
//Array of floating points:
new Float:Numbers[4] = {0.0, 1.2, 2.4, 3.8}
//Array of booleans.  Note this sets every slot to true.
new bool:playerHasGun[33] = {true, ...}


Conditionals

Conditionals allow you to test if an expression meets a standard, and to execute code based on that decision.

If Statements

The most important conditional is called "if ... then". If evaluates whether a given expression is true or false. It if is true, it executes a block of code. If not, it executes a different block of code. For example:

This is an example of the most basic if ... then statement. The first line checks to see if the expression is true. In this case, if the variable a is equal to 5, then the if statement will execute the block of code underneath it, which sets a to 6.

if (a == 5)
{
   a = 6
}
However, what happens if a does not equal 5? Then the code will not be executed. However, you can tell it to execute code if the conditions are not met. Now, if a is equal to 5, a will be set to 6. Otherwise, it will be set to 7.
if (a == 5)
{
   a = 6
} else {
   a = 7
}
There are many different operators you can use inside the if () statement. In fact, you can use any expression that evaluates to true (not zero) or false (zero).
//This will return true if a does not equal 5
if (a != 5) {}
//Returns true if a is greater than 5
if (a > 5) {}
//Returns true if a is less than 5
if (a < 5) {}
//Returns true if a is greater than or equal to 5
if (a >= 5) {}
//Returns true if a is less than or equal to 5
if (a <= 5) {}
//Returns true because 11 is true
if (5+6) {}
//Returns true of both a and b are true
if (a && b) {}
//Returns true if 7.5 is greater than c
if ( ((5*3)/2) > c) {}
//Always returns true no matter what
if (true) {}
//Never returns true
if (false) {}
Note that array comparisons have restrictions. This is invalid:
my arrayOne[3]
my arrayTwo[3]
if (arrayOne == arrayTwo) {
You must do:
if ((arrayOne[0] == arrayTwo[0]) && 
    (arrayOne[1] == arrayTwo[1]) && 
    (arrayOne[2] == arrayTwo[2])) {

Obviously, this would get very tedious with large arrays. You will see later on how to easily compare strings and arrays.
The if...then model of conditional switching can be brought up to another level. Pawn provides a way for you to provide multiple levels of true and false expressions.

//Example of "if...else if"
if (a == 5) {
   //This code will be run if a is 5.
} else if (a < 6) {
   //This code will be run if a is less than 6
} else if (a == 7) {
   //This code will be run if a is 7.
} else {
   //If none of the above conditions are met, this code will be run.
}

It is important to note that in the above example, each code block is not "fall through". That means each of the conditions will be checked in order, and if one is true, the code will be executed and the if statement is done. It will not execute multiple true conditions.