Raised This Month: $ Target: $400
 0% 

Logs Errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Decak
Senior Member
Join Date: Sep 2012
Old 11-29-2014 , 05:18   Logs Errors
Reply With Quote #1

plugin_init:
Code:
RegisterHam(Ham_Spawn, "player", "spawnc")
spawnc:
Code:
public spawnc(id) {
    set_task(1.0, "ProveriMe", id)
    if(hpr[id]) {
    set_user_gravity(id, get_user_gravity(id)-0.3)
}
    if(smoke[id]) {
    give_item(id, "weapon_glock18")
    cs_set_weapon_ammo(find_ent_by_owner(-1, "weapon_glock18", id), 1) 
    cs_set_user_bpammo( id, CSW_GLOCK18, 3 );
    return PLUGIN_HANDLED;
}
    if(glock[id]) {
    give_item(id, "weapon_glock18")
    cs_set_weapon_ammo(find_ent_by_owner(-1, "weapon_glock18", id), 1) 
    cs_set_user_bpammo( id, CSW_GLOCK18, 0 );
}
}
Logs:
Code:
L 11/29/2014 - 10:58:43: [AMXX] Displaying debug trace (plugin "mod-fix.amxx")
L 11/29/2014 - 10:58:43: [AMXX] Run time error 10: native error (native "cs_set_weapon_ammo")
L 11/29/2014 - 10:58:43: [AMXX]    [0] 92r6935f.sma.p::spawnc (line 165)
L 11/29/2014 - 10:58:46: [FUN] Invalid player 14
L 11/29/2014 - 10:58:46: [AMXX] Displaying debug trace (plugin "mod-fix.amxx")
L 11/29/2014 - 10:58:46: [AMXX] Run time error 10: native error (native "get_user_gravity")
L 11/29/2014 - 10:58:46: [AMXX]    [0] 92r6935f.sma.p::spawnc (line 161)
L 11/29/2014 - 10:59:30: [CSTRIKE] Non-player entity 0 out of range
[/code]

Server is down every 3 days...Help?
Decak is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode