SA-MP Forums Archive
How working coding - 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)
+--- Thread: How working coding (/showthread.php?tid=623340)



How working coding - MerryDeer - 30.11.2016

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?


Re: How working coding - Freaksken - 30.11.2016

You might want to read this thread.


Re: How working coding - Dignity - 30.11.2016

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.