EditObject - 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: EditObject (
/showthread.php?tid=378916)
EditObject -
fordawinzz - 19.09.2012
The object should be created like this :
pawn Код:
new object = CreateObject(...);
EditObject(playerid, object);
to be edited, or it could be created like this :
pawn Код:
CreateObject(...);
EditObject(playerid, other variable here which is the objectid);
?
because I tried that and it won't work...
Re: EditObject -
Roko_foko - 19.09.2012
1st option. Are you sure program reaches the edit part of code. put printf("Debug"); under the editobject to check
Re: EditObject -
fordawinzz - 19.09.2012
yeah , it reaches it, I've tried the debug
Re: EditObject -
Roko_foko - 19.09.2012
Object is spawned/created? No warrnings no errors?
Re: EditObject -
fordawinzz - 19.09.2012
Yeah , it is spawned, no warnings. The SetDynamicObjectPos does not works, too. Tried with IsValidDynamicObject.
pawn Код:
if(IsValidDynamicObject(id)) {
print("Test0");
SetDynamicObjectPos(id, Pos[0] + 1.5, Pos[1], Pos[2] - 0.5);
}
Streamer_UpdateEx(playerid, Pos[0], Pos[1], Pos[2], GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
print("Test1");
EditDynamicObject(playerid, id);
print("Test2");
The messages are showing up in the console.
Red_Dragon: I have the latest streamer plugin version.
Re: EditObject -
Red_Dragon. - 19.09.2012
I think that the Dynamic Commands like MoveDynamicObject etc.. needs the latest streamer plugin, i think so
Re: EditObject -
fordawinzz - 19.09.2012
I already have it.
Re: EditObject -
Roko_foko - 19.09.2012
Are you using CreateDynamicObject?
Re: EditObject -
fordawinzz - 19.09.2012
Yeah, of course.
Re: EditObject -
fordawinzz - 20.09.2012
bump?