SA-MP Forums Archive
How to Change walk Style or CJ Run? - 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)
+--- Thread: How to Change walk Style or CJ Run? (/showthread.php?tid=405755)



How to Change walk Style or CJ Run? - Antonioh - 07.01.2013

How to Change walk Style or CJ Run?


Re: How to Change walk Style or CJ Run? - Fabio11 - 07.01.2013

pawn Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    return 1;
}



Re: How to Change walk Style or CJ Run? - Antonioh - 07.01.2013

Sorry i'm not good scripter, What to do what that? Just place it in pawno(gm)?


Re: How to Change walk Style or CJ Run? - Fabio11 - 07.01.2013

You look for OnGameModeInit() and you place that under the {.


Re: How to Change walk Style or CJ Run? - Antonioh - 07.01.2013

Just that? i mean do i have to add anything?


Re: How to Change walk Style or CJ Run? - Fabio11 - 07.01.2013

You need to add UsePlayerPedAnims(); under the { of OnGameModeInit()


Re: How to Change walk Style or CJ Run? - Antonioh - 07.01.2013

Have two errors, after complicted
Quote:

error 010: invalid function or declaration
error 055: start of function body without function header




Re: How to Change walk Style or CJ Run? - Fabio11 - 07.01.2013

I can't do anything more to help you, check this post https://sampforum.blast.hk/showthread.php?tid=92

Get some knowledge about what you are doing before trying to do it.


Re: How to Change walk Style or CJ Run? - GwENiko - 07.01.2013

Try like this:

pawn Код:
public OnGameModeInit()
{
        // Don't use these lines if it's a filterscript
        SetGameModeText("Blank Script");
        UsePlayerPedAnims();
        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        return 1;
}



Re: How to Change walk Style or CJ Run? - Antonioh - 08.01.2013

Quote:
Originally Posted by GwENiko
Посмотреть сообщение
Try like this:

pawn Код:
public OnGameModeInit()
{
        // Don't use these lines if it's a filterscript
        SetGameModeText("Blank Script");
        UsePlayerPedAnims();
        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        return 1;
}
Have 3 Errors.
Quote:

error 010: invalid function or declaration
error 021: symbol already defined: "SetGameModeText"
error 055: start of function body without function header