20.03.2010, 07:41
This is my pawno code :
OK , i made this but when i compile i get the following error !
Код:
#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.

