Variable returning wrong number
#1

Hello

I have a problem with my variable.
When i check the variable its returning 0 while it should return 65535(INVALID PLAYER)
Код:
enum BailData
{
	PlayerID=INVALID_PLAYER_ID,
	PlayerArrestID=INVALID_PLAYER_ID,
	PlayerPrice
}
new BailInfo[MAX_BAILS][BailData];
How can i fix this?

DEBUG:
Код:
COMMAND:testbail(playerid,params[])
{
	for(new i; i < MAX_BAILS; i++) 
	{
		printf("NUM:%d PID:%d",i,BailInfo[i][PlayerID]);
	}
}
returns 
NUM:1 PID:0
NUM:2 PID:0
NUM:3 PID:0
NUM:4 PID:0
etc...
PS: This variable has not been set to other values.

Admigo
Reply


Messages In This Thread
Variable returning wrong number - by Admigo - 12.04.2017, 18:27
Re: Variable returning wrong number - by DarkSkull - 12.04.2017, 18:38
Re: Variable returning wrong number - by Vince - 12.04.2017, 18:38
Re: Variable returning wrong number - by Admigo - 12.04.2017, 18:58
Re: Variable returning wrong number - by BroZeus - 12.04.2017, 19:10
Re: Variable returning wrong number - by Celmir - 12.04.2017, 19:19
Re: Variable returning wrong number - by Admigo - 12.04.2017, 19:29
Re: Variable returning wrong number - by Celmir - 12.04.2017, 19:34
Re: Variable returning wrong number - by DarkSkull - 12.04.2017, 19:38
Re: Variable returning wrong number - by Admigo - 12.04.2017, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)