Bank system - 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: Bank system (
/showthread.php?tid=178110)
Bank system -
Luis- - 20.09.2010
Hi I am making a bank system and I got these errors..
pawn Код:
enum Money
{
{5},
{10},
{15},
{20},
}
new pMoney[Money];
Error('s);
Код:
C:\Users\BooNii3\Los Santos Role Play Forums - Server\Los Santos Role Play - Server\gamemodes\Test1.pwn(24) : error 001: expected token: "-identifier-", but found "{"
Re: Bank system -
Cameltoe - 20.09.2010
Remove the {} in the enum as its not an array.
Re: Bank system -
Luis- - 20.09.2010
Get this error now :/,
Код:
C:\Users\BooNii3\Los Santos Role Play Forums - Server\Los Santos Role Play - Server\gamemodes\Test1.pwn(24) : error 001: expected token: "-identifier-", but found "-integer value-"
Re: Bank system -
Cameltoe - 20.09.2010
And more like this:
enum Money
{
Money1,
Money2,
}
Re: Bank system -
Mike_Peterson - 20.09.2010
enum Money
{
Money1,
Money2,
Money3 // at the last one dont do a comma, else the compiler will think theres another money coming and gives error.
}
Re: Bank system -
Cameltoe - 20.09.2010
Quote:
Originally Posted by Mike_Peterson
enum Money
{
Money1,
Money2,
Money3 // at the last one dont do a comma, else the compiler will think theres another money coming and gives error.
}
|
Not really

ur mixing Enums and Symbols.
Re: Bank system -
BO$$ - 23.10.2010
anyway its really a good idea
Re: Bank system -
Gforcez - 23.10.2010
Код:
enum Money
{
Money1,
Money2,
Money3,
};
that should work.