12.06.2012, 12:52
pawn Code:
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/mycommand",true))
{
new myobject;
myobject = CreateObject(777, 1490.29, 2595.46, 10.06, 0.00, 0.00, 0.00); // treee
SetObjectMaterial(myobject, 0, 19128, "dancefloors", "dancefloor1", 0);
return 1;
}
return 0;
}
SOMEONE HELP PLEASE !
C:\Documents and Settings\Admin\Desktop\samp 0.3e\filterscripts\tree.pwn(1 : error 017: undefined symbol "SetObjectMaterial"
C:\Documents and Settings\Admin\Desktop\samp 0.3e\filterscripts\tree.pwn(17) : warning 204: symbol is assigned a value that is never used: "myobject"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
when i #define SetObjectMaterial i get 2 warrnings
C:\Documents and Settings\Admin\Desktop\samp 0.3e\filterscripts\tree.pwn(1 : warning 215: expression has no effect
C:\Documents and Settings\Admin\Desktop\samp 0.3e\filterscripts\tree.pwn(17) : warning 204: symbol is assigned a value that is never used: "myobject"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.