C:\Users\********\Desktop\Door.pwn(34) : error 030: compound statement not closed at the end of file (started at line 20) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
//Includes
#include <a_samp>
#include <sscanf2>
#include <streamer>
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnFilterScriptInit()
{
AddStaticPickup(1247, 14, 554.9304, 192.3939, 1038.5270, -0);
AddStaticPickup(1247, 14, 554.8141, 190.3902, 1038.5220, -0);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid,3, 554.9304, 192.3939, 1038.5270))
{
SetPlayerPos(playerid, 554.8141, 190.3902, 1038.5220);
return 1;
}
else if (PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 554.8141, 190.3902, 1038.5220))
{
SetPlayerPos(playerid, 554.9304, 192.3939, 1038.5270);
return 1;
}
}
}
return 1;
}