EditObject(playerid, object) problem - 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(playerid, object) problem (
/showthread.php?tid=360603)
EditObject(playerid, object) problem -
BoBiTzaa - 18.07.2012
I have problem
I have that command
new NumeObject;
numeObject = CreateObject(radius, X, Y, Z, 0.0, 0.0, 0.0);
EditObject(playerid,numeObject);
When i finish My friend dont see object And he dont see when i editing only me can see when i editing object and save in that position whY
Sorry for bad english
Re: EditObject(playerid, object) problem -
Matz - 18.07.2012
pawn Код:
new NumeObject;
NumeObject = CreateObject(radius, X, Y, Z, 0.0, 0.0, 0.0);
EditObject(playerid,NumeObject);
By the way what is EditObject?
Re: EditObject(playerid, object) problem -
clarencecuzz - 18.07.2012
pawn Код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
if(response == EDIT_RESPONSE_FINAL)
{
MoveObject(objectid, fX, fY, fZ, 10.0, fRotX, fRotY, fRotZ);
}
return 1;
}
@Matz, EditObject was a function that was added in 0.3e.
https://sampwiki.blast.hk/wiki/OnPlayerEditObject
Re: EditObject(playerid, object) problem -
Matz - 18.07.2012
@clarencecuzz Oh I missed it because of I don't use it
Re: EditObject(playerid, object) problem -
BoBiTzaa - 18.07.2012
Can give me an example how use public?