Attempting to script my own house
#1

Hello everyone,

I'm currently trying to make a house in my server, but things aren't going as i expected...
I checked wiki for making a house and i copied the code, changed some stuff.
This is what i got:

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Admin Crib");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/enter", true)==0)
    {
        new i, Float:X, Float:Y, Float:Z; //this is where your coords will get stored
        for (i = 0; i < MAX_PLAYERS; i++) //this is a loop
        {
            GetPlayerPos(i, X, Y, Z); //stores your pos
            if(2049.48,2763.07,10.82) //coords for entering house
            {
                SetPlayerInterior(playerid, 12); //interiorID is the Interior the house is in
                SetPlayerPos(playerid, 2049.48, 2763.07, 10.82); // X, Y, Z are the coords where the house is located
            }
        }
        return 1;
}
But these are the errors i recieve while compiling;
Код:
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\AdminCrib.pwn(30) : warning 206: redundant test: constant expression is non-zero
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\AdminCrib.pwn(39) : error 030: compound statement not closed at the end of file (started at line 24)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
What do these 2 errors mean, and what can i do to fix it?
Reply


Messages In This Thread
Attempting to script my own house - by Mr. M - 07.02.2009, 12:23
Re: Attempting to script my own house - by Sandra18[NL] - 07.02.2009, 12:41
Re: Attempting to script my own house - by Mr. M - 07.02.2009, 12:48
Re: Attempting to script my own house - by pspleo - 07.02.2009, 12:55
Re: Attempting to script my own house - by Mr. M - 07.02.2009, 13:05
Re: Attempting to script my own house - by Auto-Sized - 07.02.2009, 14:28
Re: Attempting to script my own house - by Mr. M - 07.02.2009, 17:33
Re: Attempting to script my own house - by Auto-Sized - 07.02.2009, 20:32
Re: Attempting to script my own house - by Mr. M - 07.02.2009, 20:38
Re: Attempting to script my own house - by Auto-Sized - 07.02.2009, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)