10.09.2017, 22:53
Your original problem is that you have return 1; at the end of the code when every "if" statement ends with return 1;
So all you ahve to do is remove the last return 1; and the w arning will go away. The way you've done it above is wrong, you've removed the wrong return.
You also need to have {} after an if statement if you have more than one function. IE:
to
So all you ahve to do is remove the last return 1; and the w arning will go away. The way you've done it above is wrong, you've removed the wrong return.
You also need to have {} after an if statement if you have more than one function. IE:
Код:
if( newkeys == KEY_SECONDARY_ATTACK ) { if( IsPlayerInRangeOfPoint( playerid, 3.0, 386.2978,173.8582,1008.3828 ) ) SetPlayerPos( playerid, 1480.9410,-1771.8586,18.7958 ); SetPlayerInterior( playerid, 0); GameTextForPlayer( playerid, "Goodbye", 3000, 1 ); return 1; }
Код:
if( newkeys == KEY_SECONDARY_ATTACK ) { if( IsPlayerInRangeOfPoint( playerid, 3.0, 386.2978,173.8582,1008.3828 ) ) { SetPlayerPos( playerid, 1480.9410,-1771.8586,18.7958 ); SetPlayerInterior( playerid, 0); GameTextForPlayer( playerid, "Goodbye", 3000, 1 ); } return 1; }