1 error with Gates
#1

Код HTML:
#include <a_samp>

#define FILTERSCRIPT

new LSPDGate;
new hq;

public OnFilterScriptExit()
{
    return 1;
}

public OnFilterScriptInit()
{
    LSPDGate = CreateObject(3055,1588.5000000,-1637.9000200,14.6000000,0.0000000,0.0000000,0.0000000);
	hq = CreateObject(1569,245.3999900,72.5000000,1002.5999800,0.0000000,0.0000000,0.0000000);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/open", true))
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,1588.5000000,-1637.9000200,14.6000000))
        {
            MoveObject(LSPDGate,1588.5000000,-1637.9000200,19.4000000,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    else if(!strcmp(cmdtext, "/close", true))
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,1588.5000000,-1637.9000200,14.6000000))
        {
            MoveObject(LSPDGate,1588.5000000,-1637.9000200,14.6000000,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
        
        if(!strcmp(cmdtext, "/openhq", true))
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,244.0000000,72.5000000,1002.5999800))
        {
            MoveObject(LSPDGate,244.0000000,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    else if(!strcmp(cmdtext, "/closehq", true))
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,245.3999900,72.5000000,1002.5999800))
        {
            MoveObject(LSPDGate,245.3999900,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    return 0;
}
I get one error but cant find out what it is.
Reply


Messages In This Thread
1 error with Gates - by canip - 18.03.2013, 13:33
Re: 1 error with Gates - by Jstylezzz - 18.03.2013, 13:36
Re: 1 error with Gates - by canip - 18.03.2013, 13:38
Re: 1 error with Gates - by Misiur - 18.03.2013, 13:40
Re: 1 error with Gates - by canip - 18.03.2013, 13:59
Re: 1 error with Gates - by Misiur - 18.03.2013, 14:06
Re: 1 error with Gates - by Private200 - 18.03.2013, 14:09

Forum Jump:


Users browsing this thread: 3 Guest(s)