How can I get started on scripting?
#6

You can start with simple Hello World! scripts, and I suggest you to start on filterscripts.

One Example
You get those public blabla(); clicking NEW in pawno
pawn Код:
//At the top ~ "//" means comment
#include <a_samp>

#define FILTERSCRIPT

public OnFilterScriptInit()
{

    print("\n--------------------------------------");
    print(" | Filterscript name LOADED   |");
    print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(!strcmp(cmd, "/givecard"))
        {
                SendClientMessage(playerid, -1, "Hello World!");
        }
        return 1; //this is needed or it gives unknown command
}
When you start understanding you check wiki and it's easey
Reply


Messages In This Thread
How can I get started on scripting? - by Grooty - 04.07.2013, 19:40
Re: How can I get started on scripting? - by DaRk_RaiN - 04.07.2013, 19:55
Re: How can I get started on scripting? - by Sandiel - 04.07.2013, 20:07
Re: How can I get started on scripting? - by thimo - 04.07.2013, 20:58
Re: How can I get started on scripting? - by Deathstalker - 04.07.2013, 21:02
Re: How can I get started on scripting? - by Zigonja - 04.07.2013, 21:26
Re: How can I get started on scripting? - by Sandiel - 04.07.2013, 21:26
Re: How can I get started on scripting? - by Akira297 - 04.07.2013, 21:29
Re: How can I get started on scripting? - by Guest123 - 05.07.2013, 00:32
Re: How can I get started on scripting? - by Goldilox - 05.07.2013, 06:04

Forum Jump:


Users browsing this thread: 1 Guest(s)