[SAMP plugins] data type checkiing - 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: [SAMP plugins] data type checkiing (
/showthread.php?tid=529507)
[SAMP plugins] data type checkiing -
Baltazar - 02.08.2014
Let's consider such a native function:
Код:
native AddTwoFloats( Float:a, Float:b );
Someone decides he needs to add two integers. He comes up to the idea to delete those 'Float' tags. His new function looks like this:
Код:
native AddTwoFloats( a, b );
The question is... how do I perform type checking inside plugin? Because of security and code stability reasons
Re: [SAMP plugins] data type checkiing -
Baltazar - 03.08.2014
bump