E:\bestgamemode.pwn(38) : error 017: undefined symbol "Gate" E:\bestgamemode.pwn(38) : warning 215: expression has no effect E:\bestgamemode.pwn(38) : error 001: expected token: ";", but found "]" E:\bestgamemode.pwn(38) : error 029: invalid expression, assumed zero E:\bestgamemode.pwn(38) : fatal error 107: too many error messages on one line
#include <a_samp>
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000AA
#define COLOR_GREEN 0x00FF00AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_GRAY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTBLUE 0x0AFFFFAA
#define COLOR_PURPLE 0xFF00FFAA
#define COLOR_ORANGE 0xFFBB00AA
#if defined FILTERSCRIPT
new Gate[2],
bool:Open[3 char];
new Gate1,Gate2
bool:Open1,bool:Open2;
main()
{
print("\n----------------------------------");
print(" Gamemode by iPwN");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
UsePlayerPedAnims();
{
{
Gate[0] = CreateObject(980,3097.79296875,-1450.046875,68.65291595459,0,0,90,Float:DrawDistance = 5.0);
Gate[1] = CreateObject(980,2803.6767578125,-1450.3671875,68.637771606445,0,0,90,Float:DrawDistance = 5.0);
return 1;
}
#if defined FILTERSCRIPT
new Gate[2],
bool:Open[3 char];
new Gate1,Gate2
bool:Open1,bool:Open2;
new Gate[2],
bool:Open[3 char];
new Gate1,Gate2
bool:Open1,bool:Open2;
#if defined FILTERSCRIPT
public OnGameModeInit()
{
UsePlayerPedAnims();
Gate[0] = CreateObject(980,3097.79296875,-1450.046875,68.65291595459,0,0,90,Float:DrawDistance = 5.0);
Gate[1] = CreateObject(980,2803.6767578125,-1450.3671875,68.637771606445,0,0,90,Float:DrawDistance = 5.0);
return 1;
}
E:\bestgamemode.pwn(22) : error 001: expected token: ";", but found "-label-" E:\bestgamemode.pwn(36) : error 017: undefined symbol "DrawDistance" E:\bestgamemode.pwn(36) : warning 215: expression has no effect E:\bestgamemode.pwn(36) : error 001: expected token: ";", but found ")" E:\bestgamemode.pwn(36) : error 029: invalid expression, assumed zero E:\bestgamemode.pwn(36) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
public OnGameModeInit()
{
UsePlayerPedAnims();
Gate[0] = CreateObject(980,3097.79296875,-1450.046875,68.65291595459,0,0,90,5.0);
Gate[1] = CreateObject(980,2803.6767578125,-1450.3671875,68.637771606445,0,0,90,5.0);
return 1;
}
|
The code is included in the first post - look better.
By showing the 5 errors he is facing, he means my code, in which I missed something, that has been fixed now. |