Warning 215: expression has no effect (Need Help) -
Marcynka - 05.09.2012
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 ;/
Re: Warning 215: expression has no effect (Need Help) -
JustinAn - 05.09.2012
Show the lines for:
Код:
(77823) : warning 215: expression has no effect
(77832) : warning 215: expression has no effect
Re: Warning 215: expression has no effect (Need Help) -
Marcynka - 05.09.2012
Код:
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 );
Re: Warning 215: expression has no effect (Need Help) -
Marcynka - 05.09.2012
Sorry double post.
Re: Warning 215: expression has no effect (Need Help) -
JustinAn - 05.09.2012
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
Re: Warning 215: expression has no effect (Need Help) -
Marcynka - 05.09.2012
Код:
native MoveDynamicObject( objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX, Float:RotY, Float:RotZ);
The same errors.. ;/
Re: Warning 215: expression has no effect (Need Help) -
JustinAn - 05.09.2012
Try replacing 'lspdwindows' in 'MoveDynamicObject(lspdwindows, w/e is here' to 'MoveDynamicObject(objectid, w/e is here'.
Re: Warning 215: expression has no effect (Need Help) -
Marcynka - 05.09.2012
I did that and I got extra 2 errors
Код:
error 017: undefined symbol "objectid"
So I changed it back to lspdwindows..
Re: Warning 215: expression has no effect (Need Help) -
JustinAn - 06.09.2012
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.
Re: Warning 215: expression has no effect (Need Help) -
Marcynka - 06.09.2012
Anyone can help me?