Problem with SetObjectMaterial +rep - 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 SetObjectMaterial +rep (
/showthread.php?tid=528051)
Problem with SetObjectMaterial +rep -
BlackM - 25.07.2014
Ok, so I want to change the colour of the "kmb_goflag" object (the green flag), but SetObjectMaterial is not working
Here is the code:
Код:
OnGameModeInIt()
{
//Some code here before the for loop (including the Creation of the flag objects)
for(new i = 0; i < 13; i++)
{
SetObjectMaterial(zFlag[i], 0, -1, "none", "none", 0xFF4D4D4D);
}
//Some more code here :P
}
+rep for who can fix the problem
Thx in advance