Open gate
#1

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 :
PHP код:
#pragma tabsize 0
        
if(strcmp(cmdtext"/closegate"true) == 0)
    {
    [
B]Line 211:[/B]     if(IsPlayerInRangeOfPoint(playerid3.01588.9812011719, -1638.041503906314.952730178833);
        new 
string[50];
        new 
movetime MoveObject(obj1588.9812011719, -1638.041503906314.9527301788332.00);
        
format(stringsizeof(string), "Object will finish moving in %d milliseconds"movetime);
        
SendClientMessage(playerid0xFF000000string);
        return 
1;
    } 
And these two error messages showed up :
PHP код:
pwn(211) : error 001expected token")"but found ";"
pwn(211) : error 036: empty statement 
How can I solve this irritating issue ?
Reply


Messages In This Thread
Open gate - by Scriptissue - 26.09.2010, 10:55
Re: Open gate - by Flyfishes - 26.09.2010, 10:58
Re: Open gate - by LarzI - 26.09.2010, 11:27
Re: Open gate - by Scriptissue - 26.09.2010, 11:31
Re: Open gate - by LarzI - 26.09.2010, 11:42
Re: Open gate - by Scriptissue - 26.09.2010, 12:04
Re: Open gate - by LarzI - 26.09.2010, 12:50
Re: Open gate - by Scriptissue - 26.09.2010, 13:19

Forum Jump:


Users browsing this thread: 2 Guest(s)