SA-MP Forums Archive
Problem with stocks - 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: Problem with stocks (/showthread.php?tid=445434)



Problem with stocks - Cliffka - 21.06.2013


On the screenshot a little part of all my errors. All of them caused by stocks. But every stock is inlcluded in GM. I have never had this problem before. How can I solve it?


Re: Problem with stocks - NoahF - 21.06.2013

Post your stocks.


Re: Problem with stocks - Cliffka - 21.06.2013

Quote:
Originally Posted by NoahF
Посмотреть сообщение
Post your stocks.
As an example
PHP код:
stock GPN(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    return 
name;
}
stock SendAdminMessage(colorstring[])
{
    for(new 
0GetMaxPlayers(); i++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Player[i][pAdmin] >= 1SendClientMessage(icolorstring);
        }
    }