SA-MP Forums Archive
EditObject bug - 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: EditObject bug (/showthread.php?tid=345593)



EditObject bug - milanosie - 25.05.2012

Hey, when I use the EditObject function it doesn't show the new location of the object for all players, what can be causing this problem?

Code:

pawn Код:
CMD:placebar(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] > 6)
    {
        for(new i = 0; i < 500; i++)
        {
            if(ismade[i] == 0)
            {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid, x, y, z);
                barid[i] = CreateObject(973, x+2, y, z, 0, 0, 0, 0);
                EditObject(playerid, barid[i]);
                ismade[i] = 1;
                return 1;
            }
        }
        return 1;
    }
    else return SCM(playerid, COLOR_GREY, "You are not allowed to do this!");
}