keep getting these simple errors :(
#1

i keep getting this

Код:
C:\Users\user\Desktop\Stuff\filterscripts\Bots.pwn(57) : error 017: undefined symbol "DumperCar"
C:\Users\user\Desktop\Stuff\filterscripts\Bots.pwn(62) : error 017: undefined symbol "BusCar"
C:\Users\user\Desktop\Stuff\filterscripts\Bots.pwn(67) : error 017: undefined symbol "FlingTrainCar"
C:\Users\user\Desktop\Stuff\filterscripts\Bots.pwn(72) : error 017: undefined symbol "TrainCar"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
But i have put:

Код:
new DumperCar;
new BusCar;
new FlingTrainCar;
new TrainCar;
Heres the section im getting errors on:

Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Dumper", true))
    {
      PutPlayerInVehicle(playerid, DumperCar, 0);
      return 1;
    }
    if(!strcmp(npcname, "Bus", true))
    {
      PutPlayerInVehicle(playerid, BusCar, 0);
      return 1;
    }
    if(!strcmp(npcname, "Fling", true))
    {
      PutPlayerInVehicle(playerid, FlingTrainCar, 0);
      return 1;
    }
    if(!strcmp(npcname, "Train", true))
    {
      PutPlayerInVehicle(playerid, TrainCar, 0);
      return 1;
    }
    return 1;
  }
  return 1;
}
Reply
#2

Where did you put 'new BusCar' ?
Reply
#3

Make sure it's not in a callback.
Reply
#4

oh sorry it was in a callback hehe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)