#include <a_samp>
new gate;
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
gate = CreateObject(986,2560.146,-2227.251,13.071,0.0,0.0,90.000);
return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/adminopen", true) == 0)
{
MoveObject(gate, 2560.146,-2235.245,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome to AdminBase !");
return 1;
}
if (strcmp(cmdtext, "/adminclose2", true) == 0)
{
MoveObject(gate, 2560.146,-2227.251,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"GoodBye and come back to AdminBase base");
return 1;
}
D:\Gta san andreas\GTA San Andreas\server\pawno\new.pwn(25) : error 030: compound statement not closed at the end of file (started at line 13) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
|
Originally Posted by Kirchhoff
But how can i show you where is line 25 ?
|
#include <a_samp>
new gate;
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
gate = CreateObject(986,2560.146,-2227.251,13.071,0.0,0.0,90.000);
return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/adminopen", true) == 0)
{
MoveObject(gate, 2560.146,-2235.245,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome to AdminBase !");
return 1;
}
if (strcmp(cmdtext, "/adminclose2", true) == 0)
{
MoveObject(gate, 2560.146,-2227.251,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"GoodBye and come back to AdminBase base");
return 1;
}
return 0;
}
#include <a_samp>
new gate;
new lpgate;
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
gate = CreateObject(986,2560.146,-2227.251,13.071,0.0,0.0,90.000);
lpgate = CreateObject(975,1548.571,-1627.423,14.058,0.0,0.0,90.000);
return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/adminopen", true) == 0)
{
MoveObject(gate, 2560.146,-2235.245,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome to AdminBase !");
return 1;
}
if (strcmp(cmdtext, "/adminclose", true) == 0)
{
MoveObject(gate, 2560.146,-2227.251,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"GoodBye and come back to AdminBase base");
return 1;
}
if (strcmp(cmdtext, "/lspdopen", true) == 0)
{
MoveObject(lpgate, 1548.571,-1634.002,14.058,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome to AdminBase !");
return 1;
}
if (strcmp(cmdtext, "/lspdclose", true) == 0)
{
MoveObject(lpgate, 1548.571,-1627.423,14.058,13.071,3);
SendClientMessage(playerid, COLOR_YELLOW,"GoodBye and come back to AdminBase base");
return 1;
}
return 0;
}
D:\Gta san andreas\GTA San Andreas\server\filterscripts\MovingGatesBase.pwn(29) : warning 202: number of arguments does not match definition D:\Gta san andreas\GTA San Andreas\server\filterscripts\MovingGatesBase.pwn(35) : warning 202: number of arguments does not match definition D:\Gta san andreas\GTA San Andreas\server\filterscripts\MovingGatesBase.pwn(39) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.