Help, gate command
#1

Need bad help with this moving gate
sais "cmd is not defined"
if(strcmp(cmd, "/eup", true) == 0) { // Edit the /eup to your elevator command.
MoveObject(elevator,209.4848,1875.2593,12.4170,2.0 0); // Put your cords in here
SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); // You dont alwas have to put this in, delete if wanted.
return 1;
}
if(strcmp(cmd, "/edown", true) == 0) { // Same deal as before
MoveObject(elevator,-1489.413085,2624.461914,60.960697,2.00); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait."); // Same deal as before
return 1;
}
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/eup", true) == 0) { // Edit the /eup to your elevator command.
   MoveObject(elevator,209.4848,1875.2593,12.4170,2.00); // Put your cords in here
   SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); // You dont alwas have to put this in, delete if wanted.
   return 1;
   }


   if(strcmp(cmdtext, "/edown", true) == 0) { // Same deal as before
   MoveObject(elevator,-1489.413085,2624.461914,60.960697,2.00); // Same deal as before
   SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait."); // Same deal as before
   return 1;
   }
Just change the "cmd" to "cmdtext"
Reply
#3

Quote:
Originally Posted by Stah™
pawn Код:
if(strcmp(cmdtext, "/eup", true) == 0) { // Edit the /eup to your elevator command.
   MoveObject(elevator,209.4848,1875.2593,12.4170,2.00); // Put your cords in here
   SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); // You dont alwas have to put this in, delete if wanted.
   return 1;
   }


   if(strcmp(cmdtext, "/edown", true) == 0) { // Same deal as before
   MoveObject(elevator,-1489.413085,2624.461914,60.960697,2.00); // Same deal as before
   SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait."); // Same deal as before
   return 1;
   }
Just change the "cmd" to "cmdtext"
dude....thank you so much!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)