08.11.2014, 07:41
(
Последний раз редактировалось DrumYum; 08.11.2014 в 08:13.
)
Код:
[13:29:18][INFO][ResourceManagerImpl] Load gamemode: Military Conflict [13:29:18][ERROR][err] java.lang.UnsatisfiedLinkError: net.gtaun.shoebill.SampNa tiveFunction.addPlayerClassEx(IIFFFFIIIIII)I [13:29:18][ERROR][err] at net.gtaun.shoebill.SampNativeFunction.addPlayerClassE x(Native Method) [13:29:18][ERROR][err] at net.gtaun.shoebill.object.impl.WorldImpl.addPlayerCla ss(WorldImpl.java:83) [13:29:18][ERROR][err] at drumyum.mcgm.MCGamemode.onEnable(MCGamemode.java:25) [13:29:18][ERROR][err] at net.gtaun.shoebill.resource.Resource.enable(Resource. java:88) [13:29:18][ERROR][err] at net.gtaun.shoebill.resource.ResourceManagerImpl.loadG amemode(ResourceManagerImpl.java:214) [13:29:18][ERROR][err] at net.gtaun.shoebill.resource.ResourceManagerImpl.loadA llResource(ResourceManagerImpl.java:72) [13:29:18][ERROR][err] at net.gtaun.shoebill.ShoebillImpl.loadPluginsAndGamemod e(ShoebillImpl.java:263) [13:29:18][ERROR][err] at net.gtaun.shoebill.ShoebillImpl.access$100(ShoebillIm pl.java:51) [13:29:18][ERROR][err] at net.gtaun.shoebill.ShoebillImpl$1.onGameModeInit(Shoe billImpl.java:163) [13:29:18][ERROR][err] at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lam bda$onGameModeInit$3(SampCallbackManagerImpl.java:86) [13:29:18][ERROR][err] at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$La mbda$3/22147182.call(Unknown Source) [13:29:18][ERROR][err] at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java: 21) [13:29:18][ERROR][err] at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java: 14) [13:29:18][ERROR][err] at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onG ameModeInit(SampCallbackManagerImpl.java:86) Filterscript 'ShoebillFS.amx' loaded. Number of vehicle models: 0
Код:
world.addPlayerClass(RUSpawnInfo);
Код:
public static SpawnInfo RUSpawnInfo = new SpawnInfo(TEAM_SPAWN_LOCATIONS[RU_TEAM_ID], SKIN_SELECT_ANGLE, 285, RU_TEAM_ID, WeaponModel.DEAGLE, 49, WeaponModel.AK47, 120, WeaponModel.MOLTOV, 5);
UPD: addPlayerClass not support SpawnInfo usage, this code works fine:
Код:
world.addPlayerClass(285, TEAM_SPAWN_LOCATIONS[RU_TEAM_ID].x, TEAM_SPAWN_LOCATIONS[RU_TEAM_ID].y, TEAM_SPAWN_LOCATIONS[RU_TEAM_ID].z, SKIN_SELECT_ANGLE, WeaponModel.DEAGLE.getId(), 50, WeaponModel.AK47.getId(), 120, WeaponModel.MOLTOV.getId(), 5);
Код:
world.addPlayerClass ( RUSpawnInfo.skinId, RUSpawnInfo.location.x, RUSpawnInfo.location.y, RUSpawnInfo.location.z, RUSpawnInfo.location.angle, RUSpawnInfo.weapon1.getModel().getId(), RUSpawnInfo.weapon1.getAmmo(), RUSpawnInfo.weapon2.getModel().getId(), RUSpawnInfo.weapon2.getAmmo(), RUSpawnInfo.weapon3.getModel().getId(), RUSpawnInfo.weapon3.getAmmo() );