07.02.2009, 12:23
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:
But these are the errors i recieve while compiling;
What do these 2 errors mean, and what can i do to fix it?
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;
}
Код:
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.