Error with creating object (for sale sign from rc6)
#3

yes other things from 0.3e work

i will try to reinstall the client

heres how i create the object

pawn Код:
YCMD:cobj(playerid, params[], help)
{
    //#pragma unused params
    if (help)   {SendClientMessage(playerid, 0xFF9933FF, "/cobj : create an obj");}
    else       
    {
        new modelid         = strval(params),
            Float:x,
            Float:y,
            Float:z,
            Float:rx        = 0.0,
            Float:ry        = 0.0,
            Float:rz        = 0.0,
            objId;
        GetPlayerPos(playerid,x,y,z);
       
        //objId = CreateDynamicObject(modelid, x, y, z, rx, ry, rz);
        objId = CreateObject(modelid, x + 1, y, z, rx, ry, rz);
        new strOut[128];
        format(strOut,128,"ObjID (%i) Created:",objId);
        SendClientMessage(playerid, 0xFF9933FF, strOut);
    }
    return 1;
}
i will use the streamer once i get it working correctly,
im making a dynamic obj system for my mode.

thanks for the replys
ill edit this if the client install works
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)