Why this public doesnt work? (Realy quick) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why this public doesnt work? (Realy quick) (
/showthread.php?tid=103829)
Why this public doesnt work? (Realy quick) -
Mirkan - 21.10.2009
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
Re: Why this public doesnt work? (Realy quick) -
Jefff - 21.10.2009
public LoadPedAnims()
;
Re: Why this public doesnt work? (Realy quick) -
Mirkan - 21.10.2009
Quote:
Originally Posted by Jefff
public LoadPedAnims();
|
Look at the code, I put the ";" :S
Re: Why this public doesnt work? (Realy quick) -
Jefff - 21.10.2009
Remove ; ;x
Re: Why this public doesnt work? (Realy quick) -
Striker_Moe - 21.10.2009
The callback "UsePlayerPedAnims" can only be used inside OnGameModeInit - nowhere else.
Re: Why this public doesnt work? (Realy quick) -
Mirkan - 21.10.2009
Quote:
Originally Posted by Jefff
Remove ; ;x
|
Ah ok thanks ^^. And you too Mo3. I will try now
EDIT: Works now, thank you