error

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
aurimasko
Flooderis arba specialistas
Posts: 736
Joined: 2010 Sep 04 08:45

error

Post by aurimasko »

L 01/31/2011 - 21:37:27: Start of error session.
L 01/31/2011 - 21:37:27: Info (map "jail_desert") (file "addons/amxmodx/logs/error_20110131.log")
L 01/31/2011 - 21:37:27: [CSTRIKE] Non-player entity 0 out of range
L 01/31/2011 - 21:37:27: [AMXX] Run time error 10 (plugin "jailbreak_vip.amxx") (native "cs_set_weapon_ammo") - debug not enabled!
L 01/31/2011 - 21:37:27: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Ta vieta:

Code: Select all

      give_item(id, "weapon_usp")            cs_set_weapon_ammo(find_ent_by_owner(3, "weapon_usp", id), 3);              VipUsed[id] = true            client_print(id, print_chat, ".::[VIP]::. Gavote USP su 3 kulkom!") 
Kas blogai?

User avatar
xFrostas
Flooderis arba specialistas
Posts: 660
Joined: 2010 Sep 02 15:47
Skype: frost.lt

Re: error

Post by xFrostas »

L 01/31/2011 - 21:37:27: Start of error session.
L 01/31/2011 - 21:37:27: Info (map "jail_desert") (file "addons/amxmodx/logs/error_20110131.log")
L 01/31/2011 - 21:37:27: [CSTRIKE] Non-player entity 0 out of range
L 01/31/2011 - 21:37:27: [AMXX] Run time error 10 (plugin "jailbreak_vip.amxx") (native "cs_set_weapon_ammo") - debug not enabled! L 01/31/2011 - 21:37:27: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). <<< Kaip suprast?

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: error

Post by beast »

new weapon_id = find_ent_by_owner(-1, "weapon_usp", id)

if(weapon_id)
cs_set_weapon_ammo(weapon_id, 3)

FrankJScott
Gana aktyvus vartotojas
Posts: 324
Joined: 2024 Apr 04 22:28
Skype: asfasf

Best Product Site

Post by FrankJScott »

Please try Google before asking about Useful Product Guide b1e3b16

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests