SA-MP Forums Archive
[Tutorial] How To Script On Mac OS X - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How To Script On Mac OS X (/showthread.php?tid=203896)



How To Script On Mac OS X - MacOSXFan - 28.12.2010

Hello,

Last Time I made a tutorial in which I showed you how to install the SA-MP client for Mac OS X ,this tutorial will show you a way to script on Mac OS X.First Of All, here are the things that you will be needing to make this work.

Requirements
===========
-Mac OS X 10.6.4 Snow Leopard (Genuine Not Hackintosh)
- X-Code 3.2.5 Or Higher (Not Recommending X-Code 4)

If you have already downloaded the samp server (windows edition),then skip this step.

-Download the samp server for windows at http://www.sa-mp.com/download.php
-Next, open X-Code and create a new project
-After That,Close the new project out and then click 'File' at the top and then click 'Open'
-Go to downloads and to the samp server for windows folder in the selection.
-find the 'Pawno' folder in the samp folder and click it,then double click new.pwn
-You should see something like this ,but this is an include running in X-Code ,but the .pwn files open up on there too:

-If you get an x-code window similar or exactly like this ,you have done this tutorial properly.
-Please Take Note that x-code WILL NOT compile .pwn or .inc files.
-The Main Point Of This Tutorial is for people who use mac often that need something they can script pawn files or make includes on with a unix based system.
-I hope this tutorial works for you!

Extra Information About Compilation - The reason X-Code will not compile .pwn is because it is not a compiler made for that type of code and the .inc files will not compile because it is C++ and will also, not compile.X-Code was meant for developing applications in Objective -C ,so it can still be used like a Notepad++ like application for mac.This is an example of something X-Code would actually compile:

"-(BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
return YES;
}"


Re: How To Script On Mac OS X - Fool - 28.12.2010

who would script on a mac?, people would use windows and Linux. anyways, good job.


Re: How To Script On Mac OS X - Dr.Ghost - 28.12.2010

nice

keep it up


Re: How To Script On Mac OS X - _rAped - 28.12.2010

Wasn't aware of that, so you can actually use x-code to script pawn. Grr, nice!


Re: How To Script On Mac OS X - MacOSXFan - 28.12.2010

Quote:
Originally Posted by _rAped
View Post
Wasn't aware of that, so you can actually use x-code to script pawn. Grr, nice!
You Can Script Pawn Code in X-Code, but cannot compile it.


Re: How To Script On Mac OS X - HyperZ - 28.12.2010

Very nice tut.


Re: How To Script On Mac OS X - X35B - 29.12.2010

Finally a proper tutorial.


Re: How To Script On Mac OS X - Hal - 29.12.2010

Quote:
Originally Posted by Porsche911
View Post
who would script on a mac?, people would use windows and Linux. anyways, good job.
People who use mac's cause some people find them superior to PC's

OT: Thank you so much


Re: How To Script On Mac OS X - Steven82 - 29.12.2010

Well, i wouldn't have Mac. But i would buy there laptops since there fucking actually awesome(a few of them) and just dual or boot windows 7 or Linux.


Re: How To Script On Mac OS X - _rAped - 29.12.2010

Just found out you can actually script and compile pawn with Quickpawn as it runs on Java.


Re: How To Script On Mac OS X - jomadi123 - 30.12.2010

If you don't want to download the 3.6 GB for XCode, you can also download Unity3D wich includes Unitron wich can edit pawn files as well.


Re: How To Script On Mac OS X - MacOSXFan - 30.12.2010

Quote:
Originally Posted by jomadi123
View Post
If you don't want to download the 3.6 GB for XCode, you can also download Unity3D wich includes Unitron wich can edit pawn files as well.
That`s correct and what`s even simpler is ,you can edit it with 'TextEditor'