20.07.2012, 16:15
Hello! I was making a body system, like after a cmd there appears a body. It works, body appeared on screen but the /removebody doesn't compile, it asks me this: error 017: undefined symbol "x"
Here is the script:
Here is the script:
PHP код:
CMD:placebody(playerid, params[])//This works perfectly
{
CreateObject(3092, 0, 0, 0, 0, 0, 0);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
CreateObject(3092, x, y, z, 90.0000, 0.0000, 358.3903);
}
CMD:removebody(playerid, params[])//This doesn't compile
{
new deadbody = CreateObject(3092, x, y, z, 90.0000, 0.0000, 358.3903);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
DestroyObject(deadbody);
}