undefined symbol help please - 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: undefined symbol help please (
/showthread.php?tid=95720)
undefined symbol help please -
darkmagic2 - 04.09.2009
D:\san andreas SERVER\gamemodes\larp.pwn(16544) : error 017: undefined symbol "getcarid"
D:\san andreas SERVER\gamemodes\larp.pwn(16556) : error 017: undefined symbol "getcarid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
why am i getting this error i checked line 16544 and 16556 and i dont find nothing wrong
these are the lines
{
new Float

,Float:y,Float:z;
new Float:a;
new carid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; }
else { return 1; }
getcarid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
//GetPlayerFacingAngle(playerid, a);
GetVehicleZAngle(carid, a);
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3])
{
SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
return 1;
}
if(getcarid == carid)
{
Re: undefined symbol help please -
The_Tough - 04.09.2009
new getcarid; you did carid;
or if you use both of them add this
new getcarid = your stuff here
Re: undefined symbol help please -
darkmagic2 - 04.09.2009
ok ty