undefined symbol "GetVehicle2DZone"
#8

Quote:
Originally Posted by adri1
Посмотреть сообщение
That has happened to me once, It was because I missed any bracket or something like:
Код:
public OnPlayerUpdate(playerid)
{
	switch
	Player[playerid] = GetTickCount();
	return 1;
}
Check your latest changes in the code
Quote:
Originally Posted by adri1
Посмотреть сообщение
Quote:
Originally Posted by adri1
Посмотреть сообщение
Other case:
Код:
public OnPlayerUpdate(playerid)
{
	last = GetTickCount();
	return 1;
}
Код:
C:\Users\pc\Documents\SA-MP\pawn\include\amx_assembly\amx_header.inc(311) : warning 219: local variable "last" shadows a variable at a preceding level
C:\Users\pc\Documents\SA-MP\pawn\include\YSI-Includes\YSI\..\YSI_Coding\..\YSI_Internal\y_version.inc(299) : warning 219: local variable "last" shadows a variable at a preceding level
C:\Users\pc\Documents\SA-MP\pawn\include\YSI-Includes\YSI\..\YSI_Visual\..\YSI_Data\y_foreach/impl.inc(208) : warning 219: local variable "last" shadows a variable at a preceding level
C:\Users\pc\Documents\SA-MP\pawn\include\YSI-Includes\YSI\..\YSI_Visual\..\YSI_Data\y_foreach/impl.inc(322) : warning 219: local variable "last" shadows a variable at a preceding level
C:\Users\pc\Documents\SA-MP\pawn\include\YSI-Includes\YSI\..\YSI_Visual\..\YSI_Data\y_foreach/impl.inc(344) : warning 219: local variable "last" shadows a variable at a preceding level
C:\Users\pc\Documents\SA-MP\pawn\include\YSI-Includes\YSI\..\YSI_Visual\..\YSI_Data\y_foreach/impl.inc(404) : warning 219: local variable "last" shadows a variable at a preceding level
The problem is 'last' is not declared.

Find for 'spec' variables in your scripts
You should make a full revision of your script :/ thats annoying
About the "last" part. I've went into the amx file

Код:
stock GetPublicIndexFromName(const name[]) {
	InitStaticAmxHeader();

	new num_publics = GetNumPublics(gHdr);

	//Binary search
	new first = 0;
	new last = num_publics - 1;
	new mid;

	while (first <= last) {
		mid = (first + last) / 2;

		new off = gHdr[AMX_HDR_PUBLICS] - gHdr[AMX_HDR_DAT] + mid * gHdr[AMX_HDR_DEFSIZE];
		new nameofs = ReadAmxMemory(off + 4) - gHdr[AMX_HDR_DAT];

		new diff = NtCompare(nameofs, name);
		if (diff < 0) {
			first = mid + 1;
		} else if (diff > 0) {
			last = mid - 1;
		} else {
			return mid;
		}
Reply


Messages In This Thread
undefined symbol "GetVehicle2DZone" - by Kevy - 28.12.2017, 10:14
Re: undefined symbol "GetVehicle2DZone" - by adri1 - 28.12.2017, 10:18
Re: undefined symbol "GetVehicle2DZone" - by Kevy - 28.12.2017, 10:20
Re: undefined symbol "GetVehicle2DZone" - by adri1 - 28.12.2017, 10:25
Re: undefined symbol "GetVehicle2DZone" - by Kevy - 28.12.2017, 11:03
Re: undefined symbol "GetVehicle2DZone" - by adri1 - 28.12.2017, 11:11
Re: undefined symbol "GetVehicle2DZone" - by Kevy - 28.12.2017, 11:34
Re: undefined symbol "GetVehicle2DZone" - by Kevy - 28.12.2017, 11:36
Re: undefined symbol "GetVehicle2DZone" - by Kevy - 28.12.2017, 11:38
Re: undefined symbol "GetVehicle2DZone" - by adri1 - 28.12.2017, 11:54

Forum Jump:


Users browsing this thread: 2 Guest(s)