19.09.2009, 22:04
i keep getting this
But i have put:
Heres the section im getting errors on:
Код:
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.
Код:
new DumperCar; new BusCar; new FlingTrainCar; new TrainCar;
Код:
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;
}

