How working coding
#1

Hi,

How is working codes?

If player write command, and press key, command call

CMDomething(..)
{
// actions.
}

keys

OnPlayerKeyStateChange

So if player write command first, server wait until all scripts will be excecuted, and then will start scripts onplayerkeystatechange?
Reply
#2

You might want to read this thread.
Reply
#3

Maybe "goto"?

Read https://sampwiki.blast.hk/wiki/Control_Structures#goto

However it's use is discouraged, but I think it does what you want to do.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)