Raised This Month: $ Target: $400
 0% 

Little help with debug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-25-2005 , 17:36   Little help with debug
Reply With Quote #1

ok, this plugin compiles with no warnings, no errors, and runs fine, but in the server console, i get these two things:

'invalid player 1' on line 2424, heres the function with line 2424 in it, the set_user_hitzones line is the error line:

Code:
public evade_loop() {     if (!Dragoneye()) return     for (new a = 1; a <= PLAYERS; a++) {         if (assassin[a] && pskills5[a] > 0 && automagic[a][ AMid[a] ] == 12 && is_user_alive(a) && get_user_armor(a) >= 1) {             set_evade(a)             set_user_armor(a, get_user_armor(a) - 1)         }         else {             set_user_hitzones(0, a, 255)         }     } }

and i get 'invalid player id 24' on line 1558, heres the function, the new clip, ammo (etc) line is the error line:

Code:
public check_speed() {     for (new s = 1; s <= PLAYERS; s++) {                 new clip, ammo, wpnid = get_user_weapon(s,clip,ammo)         if (is_user_alive(s) && Dragoneye()) {             if (frozen[s][0] == 1 && is_user_alive(s) && frozen[s][1] > 0) {                 new freezer = frozen[s][1]                 set_user_maxspeed(s, maxSpeed[s] - pskills2[freezer] * 40)                 render_user(s,0,20,40)                      }             else if (frozen[s][0] == 1 && is_user_alive(s) && frozen[s][1] == -1) {                 set_user_maxspeed(s, maxSpeed[s] - 100)                 render_user(s,0,20,40)             }             else if (frozen[s][0] == 1 && is_user_alive(s) && frozen[s][1] == -2) {                 set_user_maxspeed(s, maxSpeed[s] - 80)                 render_user(s,0,20,40)             }             else if (frozen[s][0] == 0 && wpnid == CSW_KNIFE && is_user_alive(s) && assassin[s] && maxSpeed[s] > 210.0) {                 set_user_maxspeed(s, maxSpeed[s])                 render_user_off(s)             }             else if (frozen[s][0] == 0 && wpnid != CSW_KNIFE && is_user_alive(s) && assassin[s] && maxSpeed[s] > 210.0) {                 set_user_maxspeed(s, maxSpeed[s] - 20)                 render_user_off(s)             }             else if (inBerserk[s]) {                 set_user_maxspeed(s, maxSpeed[s] + 50)             }         }     } }

can someone please help me? its the dragoneye plugin i ported if you want the full source
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
 



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 14:18.


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