PDA

View Full Version : help me


Shinobu
22/05/2014, 10:35 AM
Help me solve this problem.

http://image.ohozaa.com/i/1c6/Xrrk1O.png

}

public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{

Koala818
22/05/2014, 10:37 AM
You probably declare some global variables named "rx, ry, rz". Try changing the name of those global variables, or the name of the variables in the function.


public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:arx, Float:ary, Float:arz)
{

Shinobu
22/05/2014, 10:47 AM
You probably declare some global variables named "rx, ry, rz". Try changing the name of those global variables, or the name of the variables in the function.


public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:arx, Float:ary, Float:arz)
{

I edited out and replaced by the arx ary arz but this occurs.

http://image.ohozaa.com/i/7f6/uIh8EQ.png

}

public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:arx, Float:ary, Float:arz)
{
new string[128], idx = gEditID[playerid];
if(response == EDIT_RESPONSE_UPDATE)
{
SetDynamicObjectPos(objectid, x, y, z);
SetDynamicObjectRot(objectid, arx, ary, arz);
}

Koala818
22/05/2014, 10:53 AM
As far as i see, that's for sure a callback from an include file, so you would want to let the variables as they were so the function will work properly. If that's something you made, just change the variables name where you "foward". If it's not, and it's from an include, just let them as they were


public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{


and search for your global variables named "rx, rz, ry" and rename them. Also, don't forget to rename them wherever you use them. You can try editing this with notepad++ is way more simple because of "replace all" functionality.

Shinobu
22/05/2014, 11:44 AM
I do not know what to do with it, then help me find the easiest solution.