My gate? wont move?
#1

I got objects to move befor.. but now? They won't? heres the command:
Quote:

//-------------------------------------------------------------------------------------
if(strcmp(cmd, "/opengate", true) == 0)
{

if(PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 1)
{
MoveObject(PDGATE, 1602.288940, -1638.424194, 13.113057);
SendClientMessage(playerid,COLOR_GREEN, "You opening the Police Department Gate");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not a Police Officer!");
}
return 1;
}

and so.. thats the code.. when i type /opengate, all it says is You opening the Police Department gate, and then, under that, it says SERVER: Unknown command??


Please help,
Reply
#2

pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
  {

   if(PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 1)
    {
    MoveObject(PDGATE, 1602.288940, -1638.424194, 13.113057,2.5);//You forgot to define the speed of the gate
   SendClientMessage(playerid,COLOR_GREEN, "You opening the Police Department Gate");
     }
     else
     {
      SendClientMessage(playerid, COLOR_RED, "You are not a Police Officer!");
     }
  return 1;
    }
Reply
#3

Quote:
Originally Posted by ►►►Peter Corneile◄◄◄
pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
 {

   if(PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 1)
    {
    MoveObject(PDGATE, 1602.288940, -1638.424194, 13.113057,2.5);//You forgot to define the speed of the gate
   SendClientMessage(playerid,COLOR_GREEN, "You opening the Police Department Gate");
    }
    else
    {
      SendClientMessage(playerid, COLOR_RED, "You are not a Police Officer!");
    }
 return 1;
    }
OH! I was thinking of the speed befor i put the gate..! LMFAO thanks tho.. I was wondering what was wrong in the gate X, Y ,Z thingy!

Thank you
Reply
#4

Quote:
Originally Posted by Lia
Quote:
Originally Posted by ►►►Peter Corneile◄◄◄
pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
 {

   if(PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 1)
    {
    MoveObject(PDGATE, 1602.288940, -1638.424194, 13.113057,2.5);//You forgot to define the speed of the gate
   SendClientMessage(playerid,COLOR_GREEN, "You opening the Police Department Gate");
    }
    else
    {
      SendClientMessage(playerid, COLOR_RED, "You are not a Police Officer!");
    }
 return 1;
    }
OH! I was thinking of the speed befor i put the gate..! LMFAO thanks tho.. I was wondering what was wrong in the gate X, Y ,Z thingy!

Thank you
No problems
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)