PutPlayerInVehicle BUG
#5

Quote:
Originally Posted by thefirestate
Посмотреть сообщение
When is this DerbyPlayer[i] changed to a value higher than 0? Also, do you get frozen or nothing under the code there gets executed? No SCM, no PutPlayerInVehicle, no TogglePlayerControllable nothing from these functions?
Alright, I tried debugging it
When I tried to print DerbyVehicle[j] it told me "(null)" like the vehicle doesn't exist
And when I printed "j" it told me "0" like it's 0

The rest of the code works, SCM & Toggle works.

Debug code:
PHP код:
for(new vehicle 0vehicle 20vehicle++)
            {
                if(
IsVehicleOccupied(DerbyVehicle[vehicle])) continue;
                print(
DerbyVehicle[vehicle]);
                
printf("id: %d"vehicle); 
Console:
Код:
[04:24:50] (null) -- playerid 0
[04:24:50] id: 0  -- playerid 0
[04:24:50] (null) -- playerid 1
[04:24:50] id: 0 -- playerid 1
Reply


Messages In This Thread
PutPlayerInVehicle BUG - by NeXoR - 09.09.2016, 01:08
Re: PutPlayerInVehicle BUG - by thefirestate - 09.09.2016, 01:16
Re: PutPlayerInVehicle BUG - by NeXoR - 09.09.2016, 01:20
Re: PutPlayerInVehicle BUG - by thefirestate - 09.09.2016, 01:25
Re: PutPlayerInVehicle BUG - by NeXoR - 09.09.2016, 01:30
Re: PutPlayerInVehicle BUG - by thefirestate - 09.09.2016, 01:33
Re: PutPlayerInVehicle BUG - by NeXoR - 09.09.2016, 01:35
Re: PutPlayerInVehicle BUG - by thefirestate - 09.09.2016, 01:49

Forum Jump:


Users browsing this thread: 2 Guest(s)