Help with respawn vehicles
#1

Hi,

I'm currently helping a friend with his server and he wanted me to script the /respawncars command
so I this is what I have scripted:

pawn Code:
if(strcmp(cmdtext, "/respawncars", true) == 0)
    {
      if (IsPlayerAdmin(playerid))
      {
         for(new i=0;i<MAX_VEHICLES;i++)
         {
             if(IsVehicleOccupied(i) == 0)
             {
                 SetVehicleToRespawn(i);
            }
         }
            SendClientMessageToAll(COLOR_RED, "All vehicles has been respawned!");
      }
      else
      {
         SendClientMessage(playerid, COLOR_GREY, "You are not RCON Admin");
      }
      return 1;
    }
And I receive the following errors:

Code:
error 017: undefined symbol "IsVehicleOccupied"
I can't seem to fix this command. I've tried so many things and It still gives errors. Can anyone help me with this one ?
Reply


Messages In This Thread
Help with respawn vehicles - by sniperwars - 24.02.2012, 18:33
Re: Help with respawn vehicles - by dice7 - 24.02.2012, 18:42
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 19:11
Re: Help with respawn vehicles - by dice7 - 24.02.2012, 19:17
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 20:50
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 20:53
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 21:26
Re: Help with respawn vehicles - by Marco_Valentine - 24.02.2012, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)