Raised This Month: $ Target: $400
 0% 

Plugin's commands and hud messages arent shown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AnimalMonster
Senior Member
Join Date: May 2020
Old 08-03-2020 , 04:08   Re: Plugin's commands and hud messages arent shown
Reply With Quote #3

Quote:
Originally Posted by Black Rose View Post
Here's what I do when I debug code.
Print EVERYTHING
Code:
public ability1(id) {     server_print("ability1() called, id: %d", id)     server_print("is_user_alive(id): %s", is_user_alive(id) ? "true" : "false");     server_print("zp_get_user_zombie(id): %s", zp_get_user_zombie(id) ? "true" : "false");     server_print("zp_get_user_zombie_class(id) == regular: %s", zp_get_user_zombie(id) == regular ? "true" : "false");     server_print("zp_get_user_nemesis(id): %s", zp_get_user_nemesis(id) ? "true" : "false");     server_print("Ready[id]: %d", Ready[id]);     if(is_user_alive(id) && zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == regular && !zp_get_user_nemesis(id))     {         new Float:uspeed = 1000.0         if(Ready[id] == 1)         {             client_cmd(id,"cl_forwardspeed 1600")             client_cmd(id,"cl_backspeed 1600")             set_user_maxspeed(id, uspeed)                         cooldown[id] = 21             Ready[id] = 0             abilitystarted[id] = 1             abilityended[id] = 0                         set_task(ability1cooldown,"ready",id)         }         else client_print(id,print_chat,"[Ability] Wait 'till ability is ready")     } }
Thx imma try
Edit: didn't even call the function wtf, nothing in my server console aka. Console with bots

Last edited by AnimalMonster; 08-03-2020 at 04:19.
AnimalMonster is offline
 



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 13:49.


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