help me
#1

Help me solve this problem.



Код:
}

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

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.

pawn Код:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:arx, Float:ary, Float:arz)
{
Reply
#3

Quote:
Originally Posted by Koala818
Посмотреть сообщение
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.

pawn Код:
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.



Код:
}

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);
	}
Reply
#4

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

pawn Код:
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.
Reply
#5

I do not know what to do with it, then help me find the easiest solution.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)