12.12.2015, 08:30
Hi!
my code is
and errors :
how to fix it?
my code is
Код:
#define FILTERSCRIPT #include <a_samp> new Gate; forward gate(playerid); #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnGameModeInit() { Gate = CreateObject(1491 , 233.6538, 1821.5354, 7.7601, 0.0000, 90.0000, 90.0000, 600); return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(IsPlayerInRangeOfPoint(playerid, 1.0, -302.9852, 1511.1448, 74.3579)) return 1; { if(PRESSED(KEY_SPRINT))//Gate open { MoveObject(Gate, -313.8403, 1510.8694, 76.6647, 2.50); SetTimerEx("gate", 5000, false, "i", playerid); } } return 1; } public gate(playerid) { MoveObject(Gate,-302.3114,1511.1448,76.6647,2.50); return 1; } public OnFilterScriptExit() { return 1; };
and errors :
Код:
D:\gtao\Call of Duty - Asia at War\gamemodes\cod8aaww.pwn(474) : error 010: invalid function or declaration D:\gtao\Call of Duty - Asia at War\gamemodes\cod8aaww.pwn(551) : error 021: symbol already defined: "RL_OnGameModeInit" D:\gtao\Call of Duty - Asia at War\gamemodes\cod8aaww.pwn(15149) : error 021: symbol already defined: "RL_OnPlayerKeyStateChange" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.