SA-MP Forums Archive
What is String,Stock? (+1 REP) - 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: What is String,Stock? (+1 REP) (/showthread.php?tid=334356)



What is String,Stock? (+1 REP) - Andrew97 - 14.04.2012

I searched many times to know what is String and Stock and thesse things

PLease tell me what are this things ?


Re: What is String,Stock? (+1 REP) - Jonny5 - 14.04.2012

stock is a define for a function
it means if the function is not used then the compiler wont include it.

String: is a tag
Float: is a tag

you really should read the PAWN Language ref
and the wiki for samp!
its all in there


Re: What is String,Stock? (+1 REP) - Andrew97 - 14.04.2012

String:is a tag

Float:is a tag?

What is thesse?


Re: What is String,Stock? (+1 REP) - niyaz - 14.04.2012

Floats are a type of tagged variable in PAWN and they are "floating point numbers", hence the name Float. This basically means that they support decimal places, such as 1.2, 1.1, 5.32, 64.21 - where as normal integers (untagged) can't support decimal places.


Re: What is String,Stock? (+1 REP) - MadeMan - 14.04.2012

Read these:

https://sampwiki.blast.hk/wiki/Scripting_Basics#Strings

https://sampwiki.blast.hk/wiki/Keywords:Initialisers#stock