State machines - 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: State machines (
/showthread.php?tid=111829)
State machines -
Malice - 04.12.2009
pawn Code:
main()
{
state NPC_State:Onfoot;
}
error 086: unknown automaton "NPC_State"
What's up with that? Maybe I am missing something.
For those who don't know.
http://forum.sa-mp.com/index.php?topic=111714.0
Re: State machines -
hoodline - 04.12.2009
pawn Code:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
}
You cant use that function in main()