stock error - 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 error (
/showthread.php?tid=579131)
stock error -
JoshNudock - 24.06.2015
Hello, I have a problem, my stock is not working, do not know why, it is no more runs .. please someone?
PHP код:
payday()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
SalarioGoverno(); //execute
}
}
stock SalarioGoverno()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
}
return 1;
}
AW: stock error -
Mencent - 24.06.2015
Hello!
Firstly you have to write it so:
PHP код:
payday()
{
SalarioGoverno(); //execute
}
Because you will start a loop in this function again and this loop start this function MAX_PLAYERS times.
Well. Now to your problem: What isn't working in your function? Can you explain this problem exactly?
- Mencent