SA-MP Forums Archive
error 001: expected token: "}", but found "enum" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 001: expected token: "}", but found "enum" (/showthread.php?tid=169485)



error 001: expected token: "}", but found "enum" - pryor94 - 19.08.2010

pawn Код:
C:\Documents and Settings\DELA Family\Desktop\Junk\Ghs Test Server\filterscripts\xObjects.pwn(307) : error 001: expected token: "}", but found "enum"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


pawn Код:
}
enum player_info
{
    objid[sizeof(Objects)],
    bool:view[sizeof(Objects)]
}
new Player[MAX_PLAYERS][player_info];



Re: error 001: expected token: "}", but found "enum" - willsuckformoney - 19.08.2010

whats above the enum? and add an ";" after that } above enum


Re: error 001: expected token: "}", but found "enum" - DaneAMattie - 19.08.2010

show us a bit more code above that peace you gaved us


Re: error 001: expected token: "}", but found "enum" - gamer931215 - 19.08.2010

Код:
error 001: expected token: "}", but found "enum"
Read the error, it expects an "}" sign but found enum, so youre missing an "}" sign just above the line where you places your enum.


Re: error 001: expected token: "}", but found "enum" - FireCat - 19.08.2010

put a } above enum