keep getting these simple errors :( - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: keep getting these simple errors :( (
/showthread.php?tid=98262)
keep getting these simple errors :( -
[mad]MLK - 19.09.2009
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;
}
Re: keep getting these simple errors :( -
Joe Staff - 19.09.2009
Where did you put 'new BusCar' ?
Re: keep getting these simple errors :( -
Mikep. - 19.09.2009
Make sure it's not in a callback.
Re: keep getting these simple errors :( -
[mad]MLK - 19.09.2009
oh sorry it was in a callback hehe