Thanks for your help and your quick reply.
To my knowledge there is no msvc9 folder on the latest version of sourcemod. I just checked the SVN server and it's not there. Is SVN the best way to get the most recent version? Also, I got the code that's causing the link errors from smn_player.cpp, and if it can link there I don't see why I shouldn't be able to link it. I could try to just call this native function from my extension code but 1) it's bad form, and 2) I would have to pull a an IPluginContext out of thin air.
Code:
static cell_t GetWeaponName(IPluginContext *pContext, const cell_t *params)
{
int client = params[1];
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
if (!pPlayer)
{
return pContext->ThrowNativeError("Client index %d is invalid", client);
} else if (!pPlayer->IsInGame()) {
return pContext->ThrowNativeError("Client %d is not in game", client);
}
IPlayerInfo *pInfo = pPlayer->GetPlayerInfo();
if (!pInfo)
{
return pContext->ThrowNativeError("IPlayerInfo not supported by game");
}
const char *weapon = pInfo->GetWeaponName();
pContext->StringToLocalUTF8(params[2], static_cast<size_t>(params[3]), weapon ? weapon : "", NULL);
return 1;
}