SA-MP Forums Archive
OnPlayerRequestClass and PlayerObject's material! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnPlayerRequestClass and PlayerObject's material! (/showthread.php?tid=583928)



OnPlayerRequestClass and PlayerObject's material! - Crayder - 31.07.2015

When I set an object's material/text in OnPlayerRequestClass, the object is either transparent or gone.
pawn Код:
for(new i; i < 4; i++)
    {
        if(classid != i) SetPlayerObjectMaterialText(playerid, Point[playerid][i], ".", 0, 1, "Arial", 1, 0, 0xFFDD3050, 0xFFDD3050);
        else SetPlayerObjectMaterialText(playerid, Point[playerid][i], ".", 0, 1, "Arial", 1, 0, 0xFF30DD50, 0xFF30DD50);
    }