26.09.2010, 10:55
Hello, I was trying to scrip a command that allows to close a random gate from a proper distance, and limited, meaning they have to stand right in front of the gate to open it.
I used this script :
And these two error messages showed up :
How can I solve this irritating issue ?
I used this script :
PHP код:
#pragma tabsize 0
if(strcmp(cmdtext, "/closegate", true) == 0)
{
[B]Line 211:[/B] if(IsPlayerInRangeOfPoint(playerid, 3.0, 1588.9812011719, -1638.0415039063, 14.952730178833);
new string[50];
new movetime = MoveObject(obj, 1588.9812011719, -1638.0415039063, 14.952730178833, 2.00);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
PHP код:
pwn(211) : error 001: expected token: ")", but found ";"
pwn(211) : error 036: empty statement