SetObjectMaterial does not work?
#1

Hello, I recently tried to use SetObjectMaterial, like this:
pawn Код:
new Grass[71];
    Grass[1] = CreateObject(17081, 392.34, -2857.71, 5.30,   0.00, 0.00, 0.00);
//69 more of them underneath here

    for(new i; i < 0; i++)
    {
        SetObjectMaterial(Grass[i], 0, 18334, "cs_forests", "grasstype4", 0);
    }
Now, this does not give any errors, nor warnings, but it still does not work, does anyone know why? If sow please tell/explain to me, and tell/explain how I should fix this.
Thanks in advance!
Reply
#2

whats that
pawn Код:
for(new i; i < 0; i++)
try this

pawn Код:
for(new i=0; i < sizeof(Grass); i++)
Reply
#3

Quote:
Originally Posted by HuSs3n
Посмотреть сообщение
whats that
pawn Код:
for(new i; i < 0; i++)
try this

pawn Код:
for(new i=0; i < sizeof(Grass); i++)
That, did not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)