the game starts at startup and when i manaul create a entity the game crash

in acklog stands this
D3D_Validate: D3DERR_UNSUPPORTEDTEXTUREFILTER
D3D_Validate: E_FAIL
D3D_Validate: E_FAIL
D3D_Validate: E_FAIL ok

if i remove a function out of the code it works but the ony thing in there is wait(1);


its simular like this

Code:

function regs_my()
{
wait(1);
}

function stone_ent()
{
regs_my();
}




"empty"