SA-MP Forums Archive
CreateDynamicObjectEx - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamicObjectEx (/showthread.php?tid=423975)



CreateDynamicObjectEx - pasha97 - 20.03.2013

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?


Respuesta: CreateDynamicObjectEx - Parka - 20.03.2013

is in CUBE_MODEL ?


Re: Respuesta: CreateDynamicObjectEx - pasha97 - 20.03.2013

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