State machines
#1

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
Reply
#2

pawn Code:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{

}
You cant use that function in main()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)