Raised This Month: $ Target: $400
 0% 

Zombie Ghost Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-09-2014 , 04:42   Re: Zombie Ghost Problem
Reply With Quote #3

Quote:
Originally Posted by meTaLiCroSS View Post
PHP Code:
if(infector && (zp_get_user_zombie_class(infector) == g_zclass_ghost) && !zp_get_user_nemesis(infector)) 
"infector" would not be always a player id. What about if you get infected by console? Where's the "infector" player id? Some things that you need to ask you before coding something.
He meant that the infector could be something else than a player, so you must validate the player.
PHP Code:
if((<= infector <= 32) && (zp_get_user_zombie_class(infector) == g_zclass_ghost) && !zp_get_user_nemesis(infector)) 
Mario AR. 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 21:04.


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