Warning 215: expression has no effect (Need Help)
#1

How to fix these errors:

(77823) : warning 215: expression has no effect
(77832) : warning 215: expression has no effect

Код:
if(IsPlayerInRangeOfPoint(playerid, 4,251.2575,67.6536,1003.6406))
			{
			    if(lspdw == 0)
			    {
		      		MoveDynamicObject(lspdwindows, 250.524, 67.650, 1001.08,  5.0, 0.0, 0.0, 34.0 );
		      		SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Open, Please Close it!");
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s takes his/her remote control and opens the Windows.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
					lspdw = 1;
				}
				else
				{
				MoveDynamicObject(lspdwindows, 250.524, 67.650, 1002.58,  5.0, 0.0, 0.0, 46.0 );
		      		SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Closed, Thank You!");
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s takes his/her remote control and closes the Windows.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
					lspdw = 0;
				}
			}
		}
   		if(IsAPDMember(playerid) || IsAFreecop(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
Please help me ;/
Reply
#2

Show the lines for:
Код:
(77823) : warning 215: expression has no effect
(77832) : warning 215: expression has no effect
Reply
#3

Код:
MoveDynamicObject(lspdwindows, 250.524, 67.650, 1001.08,  5.0, 0.0, 0.0, 34.0 );
MoveDynamicObject(lspdwindows, 250.524, 67.650, 1002.58,  5.0, 0.0, 0.0, 46.0 );
Reply
#4

Sorry double post.
Reply
#5

Well what I found from the list of native functions related to objects is:
pawn Код:
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
You currently have 8 parameters filled in, but it's supposed to be 5 parameters - I think that's the soloution. Go ahead and fill in the 5 parameters correctly with what you want with the position, speed e.t.c
Reply
#6

Код:
native MoveDynamicObject( objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX, Float:RotY, Float:RotZ);
The same errors.. ;/
Reply
#7

Try replacing 'lspdwindows' in 'MoveDynamicObject(lspdwindows, w/e is here' to 'MoveDynamicObject(objectid, w/e is here'.
Reply
#8

I did that and I got extra 2 errors

Код:
error 017: undefined symbol "objectid"
So I changed it back to lspdwindows..
Reply
#9

Quote:
Originally Posted by Marcynka
Посмотреть сообщение
I did that and I got extra 2 errors

Код:
error 017: undefined symbol "objectid"
So I changed it back to lspdwindows..
I'm not sure, try asking others and I'm in a hurry right now for school when I'm back I'll answer.
Reply
#10

Anyone can help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)