19.10.2010, 03:38
Ive scripted in a gate and I've made a command to move it. Now when I enter the command the gate doesn't move!?]
What's the problem
Here's my code, by the way:
if (strcmp(cmdtext, "/gate", true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,20,782.09326171 875, -1384.7810058594, 12.75))
{
MoveObject(gate,773.91998291016, -1384.759765625, 12.704795837402, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "Gate has opened");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,20,782.09326171 875, -1384.7810058594, 12.75))
{
MoveObject(gate,782.34002685547, -1384.7600097656, 12.704795837402, 3.0)
SendClientMessage(playerid, COLOR_YELLOW, "Gates have closed");
return 1;
}
What's the problem
Here's my code, by the way:
if (strcmp(cmdtext, "/gate", true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,20,782.09326171 875, -1384.7810058594, 12.75))
{
MoveObject(gate,773.91998291016, -1384.759765625, 12.704795837402, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "Gate has opened");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,20,782.09326171 875, -1384.7810058594, 12.75))
{
MoveObject(gate,782.34002685547, -1384.7600097656, 12.704795837402, 3.0)
SendClientMessage(playerid, COLOR_YELLOW, "Gates have closed");
return 1;
}