06.08.2014, 19:39
Hello guys. I was wondering if you guys could help me with some Errors. I've gotten a filterscript and put it into the gamemode in the right places [I hope]. Here are the errors:
Here are the lines of the errors:
15 - 28
67 - 125
987 - 1000
Thank you!
Код:
C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(15) : error 049: invalid line continuation C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(27) : error 049: invalid line continuation C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(28) : error 055: start of function body without function header C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(67) : error 017: undefined symbol "FInfo" C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(67) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(125) : error 049: invalid line continuation C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : error 017: undefined symbol "Veh" C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : error 029: invalid expression, assumed zero C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : warning 215: expression has no effect C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : error 001: expected token: ";", but found "]" C:\Users\USER\Desktop\Prison\gamemodes\Prison.pwn(998) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.
15 - 28
Код:
#define COLOR_BLUE 0x2641FEFF
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_ORANGE 0xFF8000FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_PURPLE 0xC2A2DAFF
#pragma unused ret_memcpy
// ---------- [Enums] ---------- \\
enum FInfo
{
Код:
new FacInfo[MAX_FACTIONS][FInfo];
enum fGuns
{
mace,
macreq,
nightstick,
nightreq,
knife,
knifereq,
baseball,
basereq,
teargas,
tearreq,
mm,
mreq,
sdpistol,
sdreq,
deagle,
dreq,
shotgun,
shotreq,
combat,
combatreq,
mp5,
mp5req,
ak47,
ak47req,
m4,
m4req,
sniper,
sniperreq,
camera,
camreq,
para,
parareq,
country,
countryreq
}
new FacGuns[MAX_FACTIONS][fGuns];
main()
{
printf("test");
}
enum PInfo
{
pFacLeader,
pFacRank,
pFac,
pDiv,
pOwner,
pGovAllowed,
pDepAllowed,
pGovMod,
pDuty
}
new PlayerInfo[MAX_PLAYERS][PInfo];
// ---------- [End Of Enums] ---------- \\
new GovStarted[MAX_PLAYERS];
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
for(new i=0;i<MAX_FACTIONS;i++)
{
for(new v=0;v<12;v++)
{
if(vehicleid == FacInfo[i][Veh][v])
{
if(PlayerInfo[playerid][pFac] != i)

