CreateDynamicObjectEx
#1

Function:


pawn Код:
CreateBlock(blockmodel,Float:x, Float:y, Float:z,rot=0, world=0)
{
    new ob = CreateDynamicObjectEx(CUBE_MODEL[blockmodel],x,y,z, 0,0,rot,900,100,{world});
//The following code...
I get error 008: must be a constant expression; assumed zero

I know that it is because of that:
Код:
{world}
. Anyway, how to do it correctly? If I write just
Код:
world
, without {}, it tells me that argument type mismatch. So, how to do it correctly?
Reply


Messages In This Thread
CreateDynamicObjectEx - by pasha97 - 20.03.2013, 06:29
Respuesta: CreateDynamicObjectEx - by Parka - 20.03.2013, 06:31
Re: Respuesta: CreateDynamicObjectEx - by pasha97 - 20.03.2013, 06:36

Forum Jump:


Users browsing this thread: 1 Guest(s)