stock - 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: stock (
/showthread.php?tid=558834)
stock -
ATGOggy - 19.01.2015
What's the difference between this:
PHP Code:
stock strlower(string[])
{
for(new i=0; string[i] != EOS; i++)
string[i] = tolower(string[i]);
return string;
}
and this:
PHP Code:
strlower(string[])
{
for(new i=0; string[i] != EOS; i++)
string[i] = tolower(string[i]);
return string;
}
What does the stock do?
Also, should I use stock?
AW: stock -
Saize - 19.01.2015
Youґre asking for a stock you dont know what itґs about and if you should use it? фФ
Re: stock -
VishvaJeet - 19.01.2015
if you have defined with stock & you are not using that function in script. compiler will not return any warning/error.
pawn Code:
stock strlower(string[])
{
for(new i=0; string[i] != EOS; i++)
string[i] = tolower(string[i]);
return string;
}
if you are not using stock & you are not using that function in script. compiler will return warning/error.
pawn Code:
strlower(string[])
{
for(new i=0; string[i] != EOS; i++)
string[i] = tolower(string[i]);
return string;
}
that is difference.
Re: stock -
Ironboy - 19.01.2015
https://sampwiki.blast.hk/wiki/Stocks
Re: stock -
ATGOggy - 19.01.2015
Thanks guys
Re: stock -
Vince - 19.01.2015
That really is a terrible article. It's written as if the word "stock" and the word "function" can be used interchangeably. They can't.
There is ZERO need to use stock in a gamemode.