Help, gate command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help, gate command (
/showthread.php?tid=120875)
Help, gate command -
braduz - 13.01.2010
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;
}
Re: Help, gate command -
Stah - 13.01.2010
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"
Re: Help, gate command -
braduz - 13.01.2010
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!!