Coding a gate [Errors/+rep]
#3

Quote:
Originally Posted by Daddy Yankee
Посмотреть сообщение
pawn Код:
CMD:rbmgateopen(playerid, params[]) {
if(playerVariables[playerid][pGroup] == 4)
{
    if (IsPlayerInRangeOfPoint(playerid, 5, 1013.40002441,-1542.09997559,16.10000038) && GetPlayerInterior(playerid) == 0)
   {
          MoveObject(RBMGate, 1013.40002441,-1542.09997559,16.10000038, 5);
          return 1;
   }
}
}
Hope it helps
Thanks so much, although I do get
C:\Users\Jack\Desktop\Server\vx-rp.pwn(5591) : warning 209: function "cmd_rbmgateopen" should return a value, line 5591 is
pawn Код:
CMD:rbmgateopen(playerid, params[]) {
if(playerVariables[playerid][pGroup] == 4)
{
    if (IsPlayerInRangeOfPoint(playerid, 5, 1013.40002441,-1542.09997559,16.10000038) && GetPlayerInterior(playerid) == 0)
   {
          MoveObject(RBMGate, 1013.40002441,-1542.09997559,16.10000038, 5);
          return 1;
   }
}
} //Error line
Reply


Messages In This Thread
Coding a gate [Errors/+rep] - by Jack.7331 - 14.03.2012, 18:31
Re: Coding a gate [Errors/+rep] - by Daddy Yankee - 14.03.2012, 19:02
Re: Coding a gate [Errors/+rep] - by Jack.7331 - 14.03.2012, 19:11
Re: Coding a gate [Errors/+rep] - by Daddy Yankee - 14.03.2012, 19:14
Re: Coding a gate [Errors/+rep] - by ReneG - 14.03.2012, 19:15
Re: Coding a gate [Errors/+rep] - by Jack.7331 - 14.03.2012, 19:19
Re: Coding a gate [Errors/+rep] - by Daddy Yankee - 14.03.2012, 19:23
Re: Coding a gate [Errors/+rep] - by Jack.7331 - 14.03.2012, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)