how to connect this npc script!! -
iThePunisher - 23.06.2014
im using kreison npc robbery include.
when i add at my gamemode #include <npcrob> it shows this error
pawn Код:
[17:18:23] Script[gamemodes/cnr.amx]: Run time error 19: "File or function is not found"
[17:18:23] Number of vehicle models: 0
Maybe because at the include i added #include <a_samp> etc.. ??
after this problem i changed the include to filterscript.
now i added
pawn Код:
AddRobNPC(10,-22.1111,-140.3159,1003.5469,359.4052, 6, 16, 6000, 12000);
but still the npc at the shop isnt showing :/
can anyone explain me? thanks
Re: how to connect this npc script!! -
RenovanZ - 23.06.2014
Show us your AddRobNPC functions.
Re: how to connect this npc script!! -
Konstantinos - 23.06.2014
You'll also need the plugin:
FCNPC for include version 1.1
RNPC for include version 1.2
Re: how to connect this npc script!! -
iThePunisher - 23.06.2014
#konstantinos i already have them both
@RenovanZ
pawn Код:
stock AddRobNPC(skin, Float:x, Float:y, Float:z, Float:ang, worldid, interiorid, min, max)
{
npcnum++;
new npcname[25];
format(npcname, sizeof npcname, "%s%i_%s", NPC_PREFIX, npcnum, NPC_SUFFIX);
robnpc[npcnum] = ConnectRNPC(npcname);
assaltante[robnpc[npcnum]] = INVALID_PLAYER_ID;
if(min > max) { printf("- Robbery NPCs system - WARNING: The minimum amount received by rob is bigger than the maximum!(NPC ID %i)", robnpc[npcnum]); }
robmax[robnpc[npcnum]] = max;
robmin[robnpc[npcnum]] = min;
robint[robnpc[npcnum]] = interiorid;
SetTimerEx("AddRobNPC2", 500, false, "iffffi", skin, Float:x, Float:y, Float:z, ang, worldid, robnpc[npcnum]);
}
Re: how to connect this npc script!! -
Konstantinos - 23.06.2014
Load nativechecker plugin (should be loaded last) and see what function(s) is/are not registered.
Re: how to connect this npc script!! -
iThePunisher - 23.06.2014
ok here are the logs
this is what happens when i add #include <robnpcs> at my gamemode
pawn Код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team
[19:23:53]
[19:23:53] Server Plugins
[19:23:53] --------------
[19:23:53] Loading plugin: sscanf
[19:23:53]
[19:23:53] ===============================
[19:23:53] sscanf plugin loaded.
[19:23:53] (c) 2009 Alex "******" Cole
[19:23:53] 0.3d-R2 500 Players "dnee"
[19:23:53] ===============================
[19:23:53] Loaded.
[19:23:53] Loading plugin: gvar
[19:23:53]
*** GVar Plugin v1.3 by Incognito loaded ***
[19:23:53] Loaded.
[19:23:53] Loading plugin: streamer
[19:23:53]
*** Streamer Plugin v2.5.2 by Incognito loaded ***
[19:23:53] Loaded.
[19:23:53] Loading plugin: Whirlpool
[19:23:53]
[19:23:53] ==================
[19:23:53]
[19:23:53] Whirlpool loaded
[19:23:53]
[19:23:53] ==================
[19:23:53]
[19:23:53] Loaded.
[19:23:53] Loading plugin: mysql
[19:23:53]
> MySQL plugin R6-2 successfully loaded.
[19:23:53] Loaded.
[19:23:53] Loading plugin: FCNPC
[19:23:53]
[19:23:53] -------------------------------------------------
[19:23:53] FCNPC - Fully Controllable NPC v0.1 B12
[19:23:53]
[19:23:53] - Author: OrMisicL
[19:23:53] - Build: Jun 2 2014 at 19:05:32
[19:23:53] -------------------------------------------------
[19:23:53]
[19:23:53] Loading ...
[19:23:53] Unknown samp server version. FCNPC only supports 0.3z versions
[19:23:53] Failed.
[19:23:53] Loading plugin: RNPC
[19:23:53] Failed.
[19:23:53] Loading plugin: nativechecker
[19:23:53] Loaded.
[19:23:53] Loaded 6 plugins.
[19:23:53]
[19:23:53] Ban list
[19:23:53] --------
[19:23:53] Loaded: samp.ban
[19:23:53]
[19:23:53]
[19:23:53] Filterscripts
[19:23:53] ---------------
[19:23:53] Loading filterscript 'GPS.amx'...
[19:23:53]
--------------------------------------
[19:23:53] GPS System loading...
[19:23:53] 0, 1361.500488, -1279.018554, 13.382811, Ammu-Nation
[19:23:53] 1, 1978.135986, -2420.042968, 13.546875, Wang-Cars
[19:23:53] 2, 2352.638183, -1158.757568, 27.254596, Drug House
[19:23:53] 3, 2226.517089, -1333.043334, 23.984375, Church
[19:23:53] 4, 1459.718139, -1028.801269, 23.828125, Bank
[19:23:53] GPS System Loaded...
[19:23:53] --------------------------------------
[19:23:53] Loading filterscript 'bank.amx'...
[19:23:53]
=================================================
[19:23:53] Dynamic Bank/atm system by iThe_Punisher
[19:23:53] ===================================================
[19:23:53] Loading filterscript 'veh.amx'...
[19:23:53]
------------------------------------------------
[19:23:53] vehicles loaded
[19:23:53] ------------------------------------------------
[19:23:53] Loaded 31 vehicles
[19:23:53] Loaded 1 karships
[19:23:53] Loaded 3 bash
[19:23:53] ------------------------------------------------
[19:23:53] Loading filterscript 'punAdmin.amx'...
[19:23:53] OnFilter
[19:23:53]
________________________________________
[19:23:53] ________________________________________
[19:23:53] Punisher's admin Loading...
[19:23:53] ________________________________________
[19:23:53]
-Configuration Settings Loaded
[19:23:53] -37 Forbidden emra Loaded
[19:23:53] -14 Forbidden fsa Loaded
[19:23:53] -38 Forbidden fjal Loaded
[19:23:53] [pGarage]: Loaded 1 garages.
[19:23:53] ________________________________________
[19:23:53] punisher'admin loaded
[19:23:53] Loaded
[19:23:53] ________________________________________
[19:23:53] Date: 23/6/2014 Time: 19:23 :53
[19:23:53] ________________________________________
[19:23:53] ________________________________________
[19:23:53] ----------------------------------------
[19:23:53] Housing filterscript
[19:23:53] VipHouses loaded: 7
[19:23:53] ----------------------------------------
[19:23:53] Loading filterscript 'housetesting.amx'...
[19:23:53]
[19:23:53] =======================================
[19:23:53] | |
[19:23:53] | YSI version 1.04.0000 |
[19:23:53] | By Alex "******" Cole |
[19:23:53] | |
[19:23:53] =======================================
[19:23:53]
[19:23:53] OnFilter
[19:23:53] Loading filterscript 'BS1.amx'...
[19:23:53] OnFilter
[19:23:53] Total Businesses Loaded: 10
[19:23:53] Loading filterscript 'NPCrob.amx'...
[19:23:53] Unable to load filterscript 'NPCrob.amx'.
[19:23:53] Loaded 6 filterscripts.
[19:23:53] Error: Function not registered: 'RNPC_CreateBuild'
[19:23:53] Error: Function not registered: 'RNPC_SetWeaponID'
[19:23:53] Error: Function not registered: 'RNPC_SetSpecialAction'
[19:23:53] Error: Function not registered: 'RNPC_SetAngleQuats'
[19:23:53] Error: Function not registered: 'RNPC_AddPause'
[19:23:53] Error: Function not registered: 'RNPC_FinishBuild'
[19:23:53] Error: Function not registered: 'FCNPC_IsAiming'
[19:23:53]
[19:23:53]
[19:23:53] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[19:23:54]
Total Houses Loaded: 203
[19:23:54] Script[gamemodes/lscnr.amx]: Run time error 19: "File or function is not found"
[19:23:54] Number of vehicle models: 30
[19:23:54]
[19:23:54] ==========================================
[19:23:54] | |
[19:23:54] | A new version (v3.09.0684) of YSI is |
[19:23:54] | available from: |
[19:23:54] | |
[19:23:54] | [url]www.y-less.com/YSI/YSI_1.0.zip[/url] |
[19:23:54] | |
[19:23:54] | Changelog: |
[19:23:54] | |
[19:23:54] | 3.00.0000: |
[19:23:54] | |
[19:23:54] | YSI 3.0 released! Now includes the |
[19:23:54] | "y_text" library for better messages, |
[19:23:54] | and a reworked "y_classes" library. |
[19:23:54] | Largely documented here |
[19:23:54] | "http://forum.sa-mp.com/showthread.php |
[19:23:54] | ?t=321092". |
[19:23:54] | |
[19:23:54] | 3.01.0002: |
[19:23:54] | |
[19:23:54] | Small fixes to "y_text" and |
[19:23:54] | "y_classes". |
[19:23:54] | |
[19:23:54] | 3.09.0684: |
[19:23:54] | |
[19:23:54] | Reverted to old download location. |
[19:23:54] | Improved (and fixed) version checks; |
[19:23:54] | added y_bitmap, y_areas, y_races, |
[19:23:54] | y_zonenames, better documentation; |
[19:23:54] | MANY other bug fixes - see the github |
[19:23:54] | repository for more details: |
[19:23:54] | |
[19:23:54] ==========================================
[19:23:54]
Re: how to connect this npc script!! -
Konstantinos - 23.06.2014
pawn Код:
Loaded.
[19:23:53] Loading plugin: FCNPC
[19:23:53]
[19:23:53] -------------------------------------------------
[19:23:53] FCNPC - Fully Controllable NPC v0.1 B12
[19:23:53]
[19:23:53] - Author: OrMisicL
[19:23:53] - Build: Jun 2 2014 at 19:05:32
[19:23:53] -------------------------------------------------
[19:23:53]
[19:23:53] Loading ...
[19:23:53] Unknown samp server version. FCNPC only supports 0.3z versions
[19:23:53] Failed. // <--
[19:23:53] Loading plugin: RNPC
[19:23:53] Failed. // <--
Re: how to connect this npc script!! -
iThePunisher - 23.06.2014
already 0.3z version :/