My gate? wont move? - 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: My gate? wont move? (
/showthread.php?tid=98878)
My gate? wont move? -
Lia - 23.09.2009
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,
Re: My gate? wont move? -
Peter_Corneile - 23.09.2009
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;
}
Re: My gate? wont move? -
Lia - 23.09.2009
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
Re: My gate? wont move? -
Peter_Corneile - 23.09.2009
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