Argonath RPG - A World of its own

Argonath RPG Community => Speakerbox => Topic started by: Poncho on March 26, 2008, 01:36:51 am

Title: PAWN Tutorials
Post by: Poncho on March 26, 2008, 01:36:51 am
Anyone know any good PAWNO tutorials or resources? Other than the samp wiki?

I code in C++, C#, PHP with MySQL, AJAX, AS2 and AS3 but have just started PAWNO a few days ago. It seems pretty straight forward but just need help on a few things.

So I was wondering what the best resources and websites are, and if there are any good forums etc.

Also, if you guys ever had any time, could you write up some tutorials here? Like in a "Scripting" forum on here, then all members that use PAWNO could add to it and help each other?

Just a thought.

Thanks for your time,

Poncho.
Title: Re: PAWNO Tutorials
Post by: The_Wolf on March 26, 2008, 12:45:32 pm
 You can find PAWNO help at the SA-MP forums and on the website that has the copyrights of PAWNO http://compuphase.com/pawn/pawn.htm . I believe u can find some help here - CompuPhase posted some info about PAWNO scripting ;)
Title: Re: PAWNO Tutorials
Post by: Icarus on March 26, 2008, 12:47:53 pm
No you cant. PAWNO isnt a scripting language - its an editor.  The actual language is pawn - and I learnt it by reading scripts in the server package.
Title: Re: PAWNO Tutorials
Post by: Poncho on March 26, 2008, 10:18:25 pm
Ah okay thanks TL, I'll look around on there, and okay Icarus sorry, PAWN.
Title: Re: PAWNO Tutorials
Post by: Dave on March 27, 2008, 12:12:06 am
No you cant. PAWNO isnt a scripting language - its an editor.  The actual language is pawn - and I learnt it by reading scripts in the server package.

Damn you got here before me - my definition - PAWNO is the complier , PAWN is the 1337 0WN463 14N6U463

The tuts on the SA:MP wiki suck, i suggest teaching yourself from working examples and readin through the scripting problems section.
Title: Re: PAWNO Tutorials
Post by: stiffler2100 on March 27, 2008, 10:27:16 am
i got a script you can look through which tells you what does what....let me find it and i will upload for u:)
Title: Re: PAWNO Tutorials
Post by: Gimli on March 27, 2008, 10:29:07 am
SA:MP.com wiki (http://wiki.sa-mp.com/)
SA:MP.com forum (there is a scripting board) (http://forum.sa-mp.com/)


-xcasio
Title: Re: PAWNO Tutorials
Post by: stiffler2100 on March 27, 2008, 10:31:53 am
Tutorial.pwn (http://www.speedyshare.com/839321132.html)

there we go:D
Title: Re: PAWNO Tutorials
Post by: Obi1 on March 27, 2008, 11:25:07 am
This tutorial better work >_< I just cant seem to understand scripting.

I can use Debug fine.... The rest is like me speaking chinese

EDIT: WooooooT!

Scripted my first bit! It complied fine! ftw!

public OnPlayerText(playerid, text[])
{
new string[256];
format(string,sizeof(string),"Message sent %s",text,string);
SendClientMessage(playerid,0x33AA33AA,string);
   return 1;
}
Title: Re: PAWNO Tutorials
Post by: [Rstar]Razor on March 28, 2008, 01:18:58 am
I know a few bit of pawn but I cant understand the fking stupid strok, strlen.. :S
HELP  :help:
Title: Re: PAWNO Tutorials
Post by: WDoyle on March 28, 2008, 09:28:23 am
personally  i believe that scripting isn't too hard if you understand how it all works
Title: Re: PAWNO Tutorials
Post by: AndreTamm on March 28, 2008, 10:35:11 am
Agreed with Haldir, though wiki.sa-mp.com has good tutorials, few made by me also. :D

public OnPlayerText(playerid, text[])
{
new string[256];
format(string,sizeof(string),"Message sent %s",text,string);
SendClientMessage(playerid,0x33AA33AA,string);
   return 1;
}
Compiling doesn't mean working.
You are formatting 2 things into one "%s" + What is string, your empty variable?
Code: [Select]
public OnPlayerText(playerid, text[])
{
    new string[256];
    format(string, sizeof(string), "%s", text);
    SendClientMessage(playerid, 0x33AA33AA, string);
    return 1;
}
Title: Re: PAWNO Tutorials
Post by: The_Wolf on March 28, 2008, 01:12:03 pm
 LUA is a lot better scripting language ... and a easyer one :razz:
Title: Re: PAWNO Tutorials
Post by: Dave on March 28, 2008, 05:11:57 pm
arognathscriptingsupport.smfforfree4.co m or it might be argosscriptingsupport
Title: Re: PAWNO Tutorials
Post by: Poncho on April 05, 2008, 02:35:04 pm
Thanks for all the help, I had forgotten I had posted this, so there are a lot more responses than there were when I last looked.

Thanks for all the help guys and all the links, and I'll look at Tutorial.pwn, I've got pretty far so far with it as most is straight forward, and I got strtok(); working quite easily. Only when I tried it again, I just get a tag mismatch error on the line with else if(strcmp... even though the syntax is exactly the same as the previous strtok(); function with different variables...

Also, what I really want to do now is use the database functions but can't find any info on them, except some tutorials in russian on the samp wiki...

So if anyone can find anything on them, it would be much appreciated.

Thanks for all the help so far.
Title: Re: PAWNO Tutorials
Post by: Poncho on April 05, 2008, 02:36:34 pm
Tutorial.pwn (http://www.speedyshare.com/839321132.html)

there we go:D

Aww crap, can you upload this again please, it says the file has been deleted because it is too old, sorry for the trouble but it would be much appreciated.

Quote from: Dave
arognathscriptingsupport.smfforfree4.com or it might be argosscriptingsupport

Neither exist  :cry:
Title: Re: PAWN Tutorials
Post by: Poncho on April 07, 2008, 07:47:52 pm
Can anyone help? ^
Title: Re: PAWN Tutorials
Post by: Dave on April 07, 2008, 08:15:22 pm
http://argonathscriptingsupport.smfforfree4.com/
Title: Re: PAWN Tutorials
Post by: Poncho on April 08, 2008, 12:49:48 am
Ah thankyou,

Could anyone re-upload that Tutrorial.pwn either the person that originally had it or anyone else?

Thanks.
Title: Re: PAWN Tutorials
Post by: stiffler2100 on April 11, 2008, 11:57:58 pm
ah sorry poncho let me do it for u again :D but its on my pc so i will do it tomorrow(pc internet broken)
Title: Re: PAWN Tutorials
Post by: moneris0 on April 12, 2008, 02:03:02 am
damn its deleted  :mad:
Title: Re: PAWN Tutorials
Post by: Poncho on April 13, 2008, 07:56:41 pm
ah sorry poncho let me do it for u again :D but its on my pc so i will do it tomorrow(pc internet broken)

It's two days later than you said!! :mad:

Nah only joking, take your time, I got a load of schoolwork to do anyways  :help:
SimplePortal 2.3.7 © 2008-2025, SimplePortal