Slightly Weird Error Please Help
#1

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
Reply
#2

And the error line is?
Reply
#3

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.
Reply
#4

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
Reply
#5

AndreT meant this:
pawn Код:
new bool:inJail[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)