CJ Running style?
#1

I've browsed the SAMP wiki,but I can't seem to find how to change the default SAMP running style to CJ's running style. I'd appreciate it if I got an answer.
Reply
#2

UsePlayerPedAnims();

Please search harder next time.
Reply
#3

Should I remove that or add it? If so,where should I put it?
Reply
#4

Add that in OnGameModeInit
Reply
#5

Quote:
Originally Posted by iMatt™
Add that in OnGameModeInit
Mmkay,so you can call me an epic scriptng nub.

What do you mean IN it? In the brackets (that doesn't work,btw. I get this error:
Код:
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(8) : error 025: function heading differs from prototype
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(8) : error 029: invalid expression, assumed zero
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(8) : error 001: expected token: ")", but found ";"
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(8) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

Код:
public OnGameModeInit()
{
  UsePlayerPedAnims();
	return 1;
}
Reply
#7

I did this :
Код:
	print("\n----------------------------------");
	print(" Toyotaspeed Wars");
	print("----------------------------------\n");
}
public OnGameModeInit()
{
  UsePlayerPedAnims();
	return 1;
}
But I ended up with this error when I tried to compile:
Код:
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(13) : error 055: start of function body without function header
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(15) : error 021: symbol already defined: "SetGameModeText"
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\Untitled.pwn(21) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#8

Bump =/
Reply
#9

there's already a OnGameModeInit in your script.
Put the UsePlayerPedAnims(); -Row into your old OnGameModeInit and delete the other one
Reply
#10

Okay,I'm making myself look like an idiot -.-

This is basically the first part :

Код:
#include <a_samp>

main()
{
  print("\n----------------------------------");
  print(" Toyotaspeed Wars");
  print("----------------------------------\n");
}

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

public OnGameModeExit()
{
	return 1;
}
Код:
And I get this error:

C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\TS.pwn(15) : error 055: start of function body without function header
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\TS.pwn(17) : error 021: symbol already defined: "SetGameModeText"
C:\Users\Toyotaspeed\Documents\GTA\Sever\scriptfiles\TS.pwn(19) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)