AttachObjectToVehicle doesn't works
#1

Код:
CMD:policija(playerid,params[])
{
SendClientMessage(playerid, 0xAA3333AA, "Uћdėta");
if(PlayerInfo[playerid][pPadmin] == 1)
SetPVarInt(playerid, "zasibys", zasibys = CreateObject(19483,0,0,0,0,0,0));
SetPVarInt(playerid, "zasibys2", zasibys2 = CreateObject(19483,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "zasibys"), GetPlayerVehicleID(playerid), -1.07, 0.0, 0.0, 0.0, 0.0, 180.0);
AttachObjectToVehicle(GetPVarInt(playerid, "zasibys2"), GetPlayerVehicleID(playerid), 1.07, 0.0, 0.0, 0.0, 0.0, 0.0);
SetObjectMaterialText(zasibys, "Policija", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 32, 0, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
SetObjectMaterialText(zasibys2, "Policija", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 32, 0, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
zasibys object doesn't attach, only zasibys2, why?
Reply
#2

Hmm, did you put #include <zcmd> at the top of the script!
Reply
#3

Any ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)