Vehicle Problem.
#6

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
Try this:
on the top of the script
PHP код:
new bool:Spawned[MAX_VEHICLES]; 
Under the spawn car command
PHP код:
//Beside the create vehicle type
//new car = CreateVehicle(.....
Spawned[car] = true
Then under the respawn command
PHP код:
for(new 0MAX_VEHICLES;x++)
{
    if(
Spawned[x] == true)
    {
          
SetVehicleToRespawn(x); 
    }

I'm not sure but try
Unfortunately I get these errors:
Код:
C:\Users\Chris\Desktop\GTA SAMP Test Server\filterscripts\CAdmin.pwn(409) : error 028: invalid subscript (not an array or too many subscripts): "Spawned"
C:\Users\Chris\Desktop\GTA SAMP Test Server\filterscripts\CAdmin.pwn(409) : error 017: undefined symbol "car"
C:\Users\Chris\Desktop\GTA SAMP Test Server\filterscripts\CAdmin.pwn(409) : error 029: invalid expression, assumed zero
C:\Users\Chris\Desktop\GTA SAMP Test Server\filterscripts\CAdmin.pwn(409) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Vehicle Problem. - by ChristolisTV - 31.07.2015, 18:29
Re: Vehicle Problem. - by ChristolisTV - 31.07.2015, 18:36
Re: Vehicle Problem. - by nezo2001 - 31.07.2015, 18:38
Re: Vehicle Problem. - by ChristolisTV - 31.07.2015, 18:49
Re: Vehicle Problem. - by nezo2001 - 31.07.2015, 19:10
Re: Vehicle Problem. - by ChristolisTV - 31.07.2015, 19:19
Re: Vehicle Problem. - by Variable™ - 31.07.2015, 19:26
Re: Vehicle Problem. - by nezo2001 - 31.07.2015, 20:01
Re: Vehicle Problem. - by TheLegend1 - 31.07.2015, 22:30

Forum Jump:


Users browsing this thread: 4 Guest(s)