new SupportWall100; #define Green #{"1F5B16"} SupportWall100 = CreateObject(19435, 1445.32605, -631.25519, 94.56500, 0.00000, 0.00000, 90.00000); SetObjectMaterial(SupportWall100, 0, 19435, "all_walls", "wall6", Green); |
C:\Users\Catalin\Desktop\SampForumHouse.pwn(40) : error 017: undefined symbol "Green" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
#define greenColor 0xFF1F5B16 new SupportWall100; SupportWall100 = CreateObject(19435, 1445.32605, -631.25519, 94.56500, 0.00000, 0.00000, 90.00000); SetObjectMaterial(SupportWall100, 0, 19435, "all_walls", "wall6", greenColor);
Try this:
Код:
#define greenColor 0xFF1F5B16 new SupportWall100; SupportWall100 = CreateObject(19435, 1445.32605, -631.25519, 94.56500, 0.00000, 0.00000, 90.00000); SetObjectMaterial(SupportWall100, 0, 19435, "all_walls", "wall6", greenColor); |
It is working, can you give me the site from where you takethe color?
|
Try this:
Код:
#define greenColor 0xFF1F5B16 new SupportWall100; SupportWall100 = CreateObject(19435, 1445.32605, -631.25519, 94.56500, 0.00000, 0.00000, 90.00000); SetObjectMaterial(SupportWall100, 0, 19435, "all_walls", "wall6", greenColor); |
But another problem, the wall didn't take the color, it's still white, why ?
|