19.12.2012, 17:32
(
Last edited by Sasino97; 19/12/2012 at 07:17 PM.
)
SOLVED
Hello community, I'm developing a new filterscript (the second version of Sasinosoft Houses, remade from scratch), but I have a very strange and uncommon issue.
At the beginning I defined:
Then under OnPlayerConnect I put:
And the program will print to the console:
when it should be -255.... Another strange thing I noticed is that the second line is printed 3 seconds later.
I put the prints after noticing that error in the system.
Hello community, I'm developing a new filterscript (the second version of Sasinosoft Houses, remade from scratch), but I have a very strange and uncommon issue.
At the beginning I defined:
pawn Code:
#define INVALID_HOUSE_ID -255
new LastHouse[MAX_PLAYERS];
pawn Code:
public OnPlayerConnect(playerid)
{
LastHouse[playerid] = INVALID_HOUSE_ID;
printf("LastHouse(%d) = %d", playerid, LastHouse[playerid]);
return 1;
}
Code:
[19:47:10] [join] Sasino97 has joined the server (0:127.0.0.1) [19:47:13] LastHouse(0) = 0
I put the prints after noticing that error in the system.