Exit position garage bug.
#2

To be honest you have some really wacked out coding there so it doesn't surprise me your having issues with this system. To iterate that with your issue look at this.

pawn Код:
new i = IsPlayerNearGarage(playerid) - When entering
new i = GetPlayerVirtualWorld(playerid) - When exiting

 if(IsPlayerInRangeOfPoint(playerid, 30.0, GarageInfo[i][GarageInsideX], GarageInfo[i][GarageInsideY], GarageInfo[i][GarageInsideZ]) && GetPlayerVirtualWorld(playerid) == i)
1.) You don't need this && GetPlayerVirtualWorld(playerid) == i
2.) Virtualworlds is a shitty way to try and keep track of what array index to use
3.) Your dynamic system design is pretty bad

I'd make a number of changes:

1.) Use the streamer plugin and dynamic areas to keep an index of enter/exit points
2.) Create simplified commands that use common code built into functions
3.) Use a proper command processor
Reply


Messages In This Thread
Exit position garage bug. - by Songason - 30.10.2013, 21:13
Re: Exit position garage bug. - by Pottus - 30.10.2013, 21:31
Re: Exit position garage bug. - by Songason - 30.10.2013, 21:36
Re: Exit position garage bug. - by Pottus - 30.10.2013, 22:02
Re: Exit position garage bug. - by Songason - 30.10.2013, 22:46
Re: Exit position garage bug. - by Songason - 30.10.2013, 22:59
Re: Exit position garage bug. - by RayDcosta - 31.10.2013, 06:59
Re: Exit position garage bug. - by Songason - 31.10.2013, 15:15
Re: Exit position garage bug. - by Pottus - 31.10.2013, 16:04
Re: Exit position garage bug. - by Songason - 31.10.2013, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)