Slightly Weird Error Please Help - 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)
+--- Thread: Slightly Weird Error Please Help (
/showthread.php?tid=330775)
Slightly Weird Error Please Help -
Scripter12345 - 02.04.2012
So im trying to add the jail command and i had to add some things at the top of my script
One of them being
Код:
bool:inJail[MAX_PLAYERS];
The error im getting is
Код:
(84) : error 010: invalid function or declaration
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
new JailTimer[MAX_PLAYERS];
bool:inJail[MAX_PLAYERS];
/* <--------------------------------------------> */
main()
{
print(" ");
print(" ");
print(" ");
print(" ");
print(" ");
}
Please Help
Re: Slightly Weird Error Please Help -
Cjgogo - 02.04.2012
And the error line is?
Re: Slightly Weird Error Please Help -
AndreT - 02.04.2012
I assume you're trying to create a new array there, right? Notice the word
new that I just mentioned? Then use it in your code as well! You're simply missing that.
Re: Slightly Weird Error Please Help -
Scripter12345 - 02.04.2012
Quote:
Originally Posted by AndreT
I assume you're trying to create a new array there, right? Notice the word new that I just mentioned? Then use it in your code as well! You're simply missing that.
|
Im new to scripting and i dont quite understand what you mean, also i really badly need a good tutorial to setup a /setadmin do you know any ?
Please Help
Re: Slightly Weird Error Please Help -
Cjgogo - 02.04.2012
AndreT meant this:
pawn Код:
new bool:inJail[MAX_PLAYERS];