[Tutorial] How To Script On Mac OS X
#1

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;
}"
Reply
#2

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

nice

keep it up
Reply
#4

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

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.
Reply
#6

Very nice tut.
Reply
#7

Finally a proper tutorial.
Reply
#8

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
Reply
#9

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.
Reply
#10

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

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.
Reply
#12

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'
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)