3 lines cause error?
#1

Can't figure out why these three lines give me an error
pawn Код:
#define MAX_JAIL_CELLS 5
new JailCellOccupied [ MAX_JAIL_CELLS ];
JailCellOccupied[1] = 0;
Gives me error message
pawn Код:
nateRP.pwn(310) : error 010: invalid function or declaration
Line 310 is the line that says
pawn Код:
JailCellOccupied[1] = 0;
Reply
#2

pawn Код:
new JailCellOccupied [ MAX_JAIL_CELLS ] = 0;
Reply
#3

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
pawn Код:
new JailCellOccupied [ MAX_JAIL_CELLS ] = 0;
its already 0 without set it
well, its strange error you got ( for me )
Reply
#4

put this under on gamemodeinit or something
pawn Код:
JailCellOccupied[1] = 0;
did u put this under a callback right
Reply
#5

Quote:
Originally Posted by Glad2BeHere
Посмотреть сообщение
put this under on gamemodeinit or something
pawn Код:
JailCellOccupied[1] = 0;
did u put this under a callback right
Oh shit.... I completely blanked, that line wasn't in a callback
Reply
#6

this is example.

pawn Код:
#include a_samp

#define MAX_JAIL_CELLS 5
new JailCellOccupied [ MAX_JAIL_CELLS ];


public OnPlayerConnect(playerid)
{
    JailCellOccupied[1] = 0;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)