Problem with GetVehicleZone
#1

I have Errors in this
Quote:

if(strcmp(tmp, "1", true) == 0)
{
new vZone[MAX_ZONE_NAME], pZone[MAX_ZONE_NAME];
GetVehicleZone(veh1[playerid], vZone, MAX_ZONE_NAME); GetPlayer2DZone(playerid, pZone, MAX_ZONE_NAME);
//if(IsVehicleSpawned(veh1[playerid]))
if(veh1[playerid] != 999)
{
if(strcmp(vZone, pZone, true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(veh1[playerid], X, Y, Z);
vCheck1[playerid] = SetPlayerCheckpoint(playerid, X, Y, Z, 5);
format(string, sizeof(string), "Your %s is at %s.Go to the red mark to get it.", VehicleNames[GetVehicleModel(veh1[playerid])-400], vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
else
{
format(string, sizeof(string), "Your %s is at %s, and you are in %s, go to %s then use /v find", VehicleNames[GetVehicleModel(veh1[playerid])-400], vZone, pZone, vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Your Vehicle is not spawned !");
return 1;
}
}
if(strcmp(tmp, "2", true) == 0)
{
//if(IsVehicleSpawned(veh2[playerid]))
if(veh2[playerid] != 999)
{
new vZone[MAX_ZONE_NAME], pZone[MAX_ZONE_NAME];
GetVehicleZone(veh2[playerid], vZone, MAX_ZONE_NAME); GetPlayer2DZone(playerid, pZone, MAX_ZONE_NAME);
if(strcmp(vZone, pZone, true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(veh2[playerid], X, Y, Z);
vCheck2[playerid] = SetPlayerCheckpoint(playerid, X, Y, Z, 5);
format(string, sizeof(string), "Your %s is at %s.Go to the red mark to get it.", VehicleNames[GetVehicleModel(veh2[playerid])-400], vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
else
{
format(string, sizeof(string), "Your %s is at %s, and you are in %s, go to %s then use /v find", VehicleNames[GetVehicleModel(veh2[playerid])-400], vZone, pZone, vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Your Vehicle is not spawned !");
return 1;
}
}
if(strcmp(tmp, "3", true) == 0)
{
//if(IsVehicleSpawned(veh3[playerid]))
if(veh3[playerid] != 999)
{
new vZone[MAX_ZONE_NAME], pZone[MAX_ZONE_NAME];
GetVehicleZone(veh3[playerid], vZone, MAX_ZONE_NAME); GetPlayer2DZone(playerid, pZone, MAX_ZONE_NAME);
if(strcmp(vZone, pZone, true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(veh3[playerid], X, Y, Z);
vCheck3[playerid] = SetPlayerCheckpoint(playerid, X, Y, Z, 5);
format(string, sizeof(string), "Your %s is at %s.Go to the red mark to get it.", VehicleNames[GetVehicleModel(veh3[playerid])-400], vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
else
{
format(string, sizeof(string), "Your %s is at %s, and you are in %s, go to %s then use /v find", VehicleNames[GetVehicleModel(veh3[playerid])-400], vZone, pZone, vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Your Vehicle is not spawned !");
return 1;
}
}
if(strcmp(tmp, "4", true) == 0)
{
//if(IsVehicleSpawned(veh4[playerid]))
if(veh4[playerid] != 999)
{
new vZone[MAX_ZONE_NAME], pZone[MAX_ZONE_NAME];
GetVehicleZone(veh4[playerid], vZone, MAX_ZONE_NAME); GetPlayer2DZone(playerid, pZone, MAX_ZONE_NAME);
if(strcmp(vZone, pZone, true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(veh4[playerid], X, Y, Z);
vCheck4[playerid] = SetPlayerCheckpoint(playerid, X, Y, Z, 5);
format(string, sizeof(string), "Your %s is at %s.Go to the red mark to get it.", VehicleNames[GetVehicleModel(veh4[playerid])-400], vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
else
{
format(string, sizeof(string), "Your %s is at %s, and you are in %s, go to %s then use /v find", VehicleNames[GetVehicleModel(veh4[playerid])-400], vZone, pZone, vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Your Vehicle is not spawned !");
return 1;
}
}
if(strcmp(tmp, "5", true) == 0)
{
//if(IsVehicleSpawned(veh5[playerid]))
if(veh5[playerid] != 999)
{
new vZone[MAX_ZONE_NAME], pZone[MAX_ZONE_NAME];
GetVehicleZone(veh5[playerid], vZone, MAX_ZONE_NAME); GetPlayer2DZone(playerid, pZone, MAX_ZONE_NAME);
if(strcmp(vZone, pZone, true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(veh5[playerid], X, Y, Z);
vCheck5[playerid] = SetPlayerCheckpoint(playerid, X, Y, Z, 5);
format(string, sizeof(string), "Your %s is at %s.Go to the red mark to get it.", VehicleNames[GetVehicleModel(veh5[playerid])-400], vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
else
{
format(string, sizeof(string), "Your %s is at %s, and you are in %s, go to %s then use /v find", VehicleNames[GetVehicleModel(veh5[playerid])-400], vZone, pZone, vZone);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
}

These are the erros
Quote:

C:\Documents and Settings\Irina\Рабочий стол\pawno\InfinityRP.pwn(3844 : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Irina\Рабочий стол\pawno\InfinityRP.pwn(38480) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Irina\Рабочий стол\pawno\InfinityRP.pwn(38509) : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Irina\Рабочий стол\pawno\InfinityRP.pwn(3853 : error 017: undefined symbol "GetVehicleZone"
C:\Documents and Settings\Irina\Рабочий стол\pawno\InfinityRP.pwn(38567) : error 017: undefined symbol "GetVehicleZone"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Can someone please please tell me how to fix this ?
Reply
#2

Pleeease someone ?
Reply
#3

you don't have GetVehicleZone native ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)