Uncommon problem with an array
#3

Quote:
Originally Posted by Ballu Miaa
View Post
Just to debug it:

pawn Code:
#define INVALID_HOUSE_ID -1

//or

#define INVALID_HOUSE_ID 56
Show me the output. I guess MACROS does not support negative numbers bud i dont think so!
The same:
pawn Code:
#define INVALID_HOUSE_ID 56
Code:
[20:33:08] [join] Sasino97 has joined the server (0:127.0.0.1)
[20:33:10] LastHouse(0) = 0
EDIT:

It's not a problem with the macro, look:
pawn Code:
public OnPlayerConnect(playerid)
{
    LastHouse[playerid] = 15;
    printf("LastHouse(%d) = %d", playerid, LastHouse[playerid]);
    return 1;
}
will also print 0
Reply


Messages In This Thread
Uncommon problem with an array - by Sasino97 - 19.12.2012, 17:32
Re: Uncommon problem with an array - by Ballu Miaa - 19.12.2012, 17:57
Re: Uncommon problem with an array - by Sasino97 - 19.12.2012, 18:13
Re: Uncommon problem with an array - by [KHK]Khalid - 19.12.2012, 18:44
Re: Uncommon problem with an array - by Sasino97 - 19.12.2012, 18:53
Re: Uncommon problem with an array - by Ballu Miaa - 19.12.2012, 18:58
Re: Uncommon problem with an array - by [KHK]Khalid - 19.12.2012, 18:59
Re: Uncommon problem with an array - by Sasino97 - 19.12.2012, 18:59
Re: Uncommon problem with an array - by [KHK]Khalid - 19.12.2012, 19:06
Re: Uncommon problem with an array - by Sasino97 - 19.12.2012, 19:15

Forum Jump:


Users browsing this thread: 2 Guest(s)