Why this public doesnt work? (Realy quick)
#1

I want to make the public OnPlayerConect(playerid); more simple, I'm just adding some publics, like this:

Код:
forward LoadPedAnims();
public LoadPedAnims();
{
  UsePlayerPedAnims();
  return 1;
}
This is an example, for loading the ped anims, I put LoadPedAnims(); on public OnPlayerConnect(playerid); but it doesnt work, look at this errors:

Код:
C:\Documents and Settings\Admin\Bureau\Stunt server\gamemodes\SU.pwn(210) : error 055: start of function body without function header
C:\Documents and Settings\Admin\Bureau\Stunt server\gamemodes\SU.pwn(212) : error 010: invalid function or declaration
C:\Documents and Settings\Admin\Bureau\Stunt server\gamemodes\SU.pwn(225) : error 004: function "LoadPedAnims" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Why doesnt it work? :S
Reply
#2

public LoadPedAnims();
Reply
#3

Quote:
Originally Posted by Jefff
public LoadPedAnims();
Look at the code, I put the ";" :S
Reply
#4

Remove ; ;x
Reply
#5

The callback "UsePlayerPedAnims" can only be used inside OnGameModeInit - nowhere else.
Reply
#6

Quote:
Originally Posted by Jefff
Remove ; ;x
Ah ok thanks ^^. And you too Mo3. I will try now

EDIT: Works now, thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)