Some errors I don't understand
#1

Код:
-\gamemodes\b.pwn(870) : warning 213: tag mismatch
-\gamemodes\b.pwn(871) : error 017: undefined symbol "mysql_ping"
-\gamemodes\b.pwn(1056) : error 004: function "DeletePlayerAccount" is not implemented
-\gamemodes\b.pwn(1081) : error 004: function "SetIntVar" is not implemented
-\gamemodes\b.pwn(1086) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1087) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1088) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1089) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1090) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1091) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1092) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1093) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1094) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1095) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1096) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1097) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1112) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1113) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(1153) : error 004: function "SavePlayerStats" is not implemented
-\gamemodes\b.pwn(1300) : error 017: undefined symbol "PreloadPlayerAnims"
-\gamemodes\b.pwn(2136) : error 004: function "RemoveVar" is not implemented
-\gamemodes\b.pwn(2143) : error 004: function "SetIntVar" is not implemented
-\gamemodes\b.pwn(2280) : error 017: undefined symbol "ShowModelSelectionMenu2"
-\gamemodes\b.pwn(2393) : error 004: function "FixHour" is not implemented
-\gamemodes\b.pwn(2621) : error 004: function "ActionMessage" is not implemented
-\gamemodes\b.pwn(2630) : error 004: function "ActionMessage" is not implemented
-\gamemodes\b.pwn(2638) : error 004: function "SetIntVar" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
871
Код:
stock ConnectMySQL()
{
	dbHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
	mysql_log(1); **line - 871**
	if(mysql_ping() == -1)
	{
	    printf("Failed to connect to MySQL !");
	} else {
		printf("Connected to MySQL !");
	}
	return 1;
}
1056-1153(ends at 1165)
Код:
public OnPlayerDisconnect(playerid, reason)
{
	if(GetPVarInt(playerid, "RegisterPart") != 0)
	{
		DeletePlayerAccount(GetName(playerid));
	} 
	else 
	{
		if(PlayerLogged(playerid))
		{
			KillAllTimers(playerid);
			//========================================
			if(GetPVarInt(playerid, "JustDied") == 1 || GetPVarInt(playerid, "LoggedInDead") == 1)
				PlayerInfo[playerid][pDied] = 1;
			else
				PlayerInfo[playerid][pDied] = 0;
			//========================================
			if(GetPVarInt(playerid, "RentedCar") == 1)
			{
				RespawnVehicle(GetPVarInt(playerid, "RentVehKey"));
				FixVehicle(GetPVarInt(playerid, "RentVehKey"));
			}
			//========================================
			new caller = GetPVarInt(playerid, "CallWith");
			if(PlayerIsOn(caller))
			{
				if(GetPVarInt(caller, "OnCall") == 1 && GetPVarInt(playerid, "OnCall") == 1)
				{
					CellMSG(caller, "The line just went dead.");
					SetIntVar(playerid, "CallCost", GetPVarInt(playerid, "callTime")/10);
					format(msg, sizeof(msg), "~w~The call cost~n~~r~$%d",GetPVarInt(caller, "CallCost"));
					GameTextForPlayer(caller, msg, 5000, 1);
					GiveCash(caller, -GetPVarInt(playerid, "CallCost"));
					phoneAnim(caller, 0);
					RemoveVar(caller, "CallCost");
					RemoveVar(caller, "CallTime");
					RemoveVar(caller, "CallWith");
					RemoveVar(caller, "GettingCall");
					RemoveVar(caller, "OnCall");
					RemoveVar(caller, "IsCalling");
					RemoveVar(playerid, "CallCost");
					RemoveVar(playerid, "CallTime");
					RemoveVar(playerid, "CallWith");
					RemoveVar(playerid, "GettingCall");
					RemoveVar(playerid, "OnCall");
					RemoveVar(playerid, "IsCalling");
				}
			}
			//========================================
			if(reason == 0)
			{
				PlayerInfo[playerid][pCrashed] = 1;
			}
			//========================================
			foreach(Player, i)
			{
				if(GetPVarInt(i, "InConvo") == 1 && GetPVarInt(i, "ConvoWith") == playerid)
				{
					format(msg, sizeof(msg), "[ID:%d]%s has been disconnected from the server, the convo has ended.", playerid, GetName(playerid));
					ConvoMSG(i, msg);
					RemoveVar(i, "InConvo");
					RemoveVar(i, "ConvoWith");
				}
			}
			//========================================
			if(PlayerInfo[playerid][pHouseKey] != -1) UpdateHouseInfo(PlayerInfo[playerid][pHouseKey]);
			if(PlayerInfo[playerid][pBizKey] != -1) UpdateBizInfo(PlayerInfo[playerid][pBizKey]);
			if(PlayerInfo[playerid][pCarKey] != 0) 
			{
				SaveVehicle(PlayerInfo[playerid][pCarKey]);
			}
			else
			{
				PlayerInfo[playerid][pCarKey] = 0;
				PlayerInfo[playerid][pVehSlot] = 0;
			}
			RemovePlayerBoomBox(playerid);
			CheckPMBlockList(playerid);
			//========================================
			for(new i = 0; i < 11; i++)
			{
				if(RoadBlocks[playerid][i] != INVALID_OBJECT_ID)
				{
					DestroyDynamicObject(RoadBlocks[playerid][i]);
				}
			}
			//========================================
			if(Trucking{playerid})
			{
				new vehicle = TruckVehicle[playerid];
				if(TruckComps[vehicle] > 0)
				{
					PlacePlayerTicket(playerid, (TruckComps[vehicle] * 5) / 10);
				}
				TruckComps[vehicle] = 0;
				if(!VehicleInfo[vehicle][carOwned])
				{
					RespawnVehicle(TruckVehicle[playerid]);
				}
			}
			//========================================
			SavePlayerStats(playerid);
			//========================================
		}
	}
    switch(reason)
    {
        case 0: format(msg,sizeof msg,"** %s (Timed out)",GetNameEx(playerid));
        case 1: format(msg,sizeof msg,"** %s (Quit)",GetNameEx(playerid));
        case 2: format(msg,sizeof msg,"** %s (Kicked/Banned)",GetNameEx(playerid));
    }
	ProxDetector(5, playerid, msg, -1);
	return 1;
}
line 1300
Код:
stock StopPlayerAnims(playerid)
{
	if(PlayerIsWounded(playerid) || PlayerInCar(playerid) || JackingEngine[playerid] != 0 || JackingLock[playerid] != 0 || Tazed{playerid}) return 1;
	OnAnim{playerid} = false;
	ClearAnimations(playerid, 1);
	PreloadPlayerAnims(playerid); **line 1300**
	return 1;
}
2136 and 2143
Код:
public UnFreezePlayer(playerid)
{
	RemoveVar(playerid, "isFrozen"); **2136**
	TogglePlayerControllable(playerid, true);
	return 1;
}

public FreezePlayer(playerid)
{
	SetIntVar(playerid, "isFrozen", 1); **2143**
	TogglePlayerControllable(playerid, false);
	return 1;
}
2280
Код:
stock ShowBuyableCars(playerid)
{
	ShowModelSelectionMenu2(playerid, buyable, "Vehicles"); **2280**
	SelectTextDraw(playerid, 0xACCBF1FF);
	return 1;
}
2393
Код:
stock SetCurrentTime()
{
	gettime(ghour, gminute, gsecond);
	FixHour(ghour); **2393**
	ghour = shifthour;
	SetWorldTime(ghour);
	return 1;
}
2621 2630
Код:
stock ToggleVehicleEngine(vehicleid, playerid)
{
	GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
	if(!engineOn{vehicleid})
	{
		new Float:hp;
		GetVehicleHealth(vehicleid, hp);
		new start = randomEx(1, 7);
		if(hp < 700)
		{
			if(start == 1 || start == 6)
			{
				GameTextForPlayer(playerid, "~r~Engine couldn't start due to the damamge", 3000, 4);
				return 1;
			}
		}
		if(hp < 500)
		{
			if(start == 1 || start == 2 || start == 5 || start == 6)
			{
				GameTextForPlayer(playerid, "~r~Engine couldn't start due to the damamge", 3000, 4);
				return 1;
			}
		}
		if(hp < 300)
		{
			if(start == 1 || start == 2 || start == 3 || start == 5 || start == 6)
			{
				GameTextForPlayer(playerid, "~r~Engine couldn't start due to the damamge", 3000, 4);
				return 1;
			}
		}
		format(msg, sizeof(msg), "~g~ENGINE ON");
		GameTextForPlayer(playerid, msg, 2500, 4);
		SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
		format(msg, sizeof(msg), "starts engine of the %s", VehicleNames[GetVehicleModel(vehicleid)-400]);
		ActionMessage(playerid,15.0,msg); **2621**
		engineOn{vehicleid} = true;
	}
	else if(engineOn{vehicleid})
	{			
		format(msg, sizeof(msg), "~r~ENGINE OFF");
		GameTextForPlayer(playerid, msg, 2500, 4);
		SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
		format(msg, sizeof(msg), "stops engine of the %s", VehicleNames[GetVehicleModel(vehicleid)-400]);
		ActionMessage(playerid,15.0,msg); **2630**
		engineOn{vehicleid} = false;
	}
	return 1;
}
2638
Код:
stock SetCheckPoint(playerid, value, Float:x, Float:y, Float:z, Float:size)
{
	SetIntVar(playerid, "PlayerCP", value); **2638**
	SetPlayerCheckpoint(playerid, x, y, z, size);
	return 1;
}
Reply


Messages In This Thread
Some errors I don't understand - by Infinity001 - 19.12.2015, 21:50
Re: Some errors I don't understand - by Sew_Sumi - 20.12.2015, 00:50

Forum Jump:


Users browsing this thread: 1 Guest(s)