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
#2

is in CUBE_MODEL ?
Reply
#3

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
is in CUBE_MODEL ?
What? No, the error comes from {world} part.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)