Raised This Month: $ Target: $400
 0% 

Non player is out of range?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-17-2014 , 08:26   Re: Non player is out of range?
Reply With Quote #1

on the mobile..

PHP Code:
public eDeath()
{
   new 
iKiller read_data(1);
   new 
iVictim read_data(2);

   if (
IsPlayer(Killer) && iVictim != iKiller && Tonly[iKiller])
   {
       new 
weapon_id find_ent_by_owner(-1"weapon_*"iKiller);
       if (!
weapon_id) return;

       new 
szKillMSG[3];
       switch (
cs_get_weapon_ammo(weapon_id))
       {
          case 
0: {
              
//formatex....
              
cs_set_weapon_ammo(weapon_id1);
          }
          case 
1: {
             
//formatex...
          
}
          default: return;
       }

        
//hudmessage
   
}


Last edited by baneado; 08-17-2014 at 08:35.
baneado is offline
proffs
Senior Member
Join Date: Jul 2013
Old 08-17-2014 , 11:01   Re: Non player is out of range?
Reply With Quote #2

Quote:
Originally Posted by baneado View Post
on the mobile..

PHP Code:
public eDeath()
{
   new 
iKiller read_data(1);
   new 
iVictim read_data(2);

   if (
IsPlayer(Killer) && iVictim != iKiller && Tonly[iKiller])
   {
       new 
weapon_id find_ent_by_owner(-1"weapon_*"iKiller);
       if (!
weapon_id) return;

       new 
szKillMSG[3];
       switch (
cs_get_weapon_ammo(weapon_id))
       {
          case 
0: {
              
//formatex....
              
cs_set_weapon_ammo(weapon_id1);
          }
          case 
1: {
             
//formatex...
          
}
          default: return;
       }

        
//hudmessage
   
}

Makes no sense, tells me to return n shitz :S
Ty for helping...
I get few errors still.
proffs is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 08-24-2014 , 16:16   Re: Non player is out of range?
Reply With Quote #3

Quote:
Originally Posted by baneado View Post
on the mobile..

PHP Code:
public eDeath()
{
   new 
iKiller read_data(1);
   new 
iVictim read_data(2);

   if (
IsPlayer(Killer) && iVictim != iKiller && Tonly[iKiller])
   {
       new 
weapon_id find_ent_by_owner(-1"weapon_*"iKiller);
       if (!
weapon_id) return;

       new 
szKillMSG[3];
       switch (
cs_get_weapon_ammo(weapon_id))
       {
          case 
0: {
              
//formatex....
              
cs_set_weapon_ammo(weapon_id1);
          }
          case 
1: {
             
//formatex...
          
}
          default: return;
       }

        
//hudmessage
   
}

as longes i know, weapon entity is in client side and the entity index can not find that way.
Also you don't need entity id, you need weapon id.
.Dare Devil. is offline
proffs
Senior Member
Join Date: Jul 2013
Old 08-25-2014 , 15:49   Re: Non player is out of range?
Reply With Quote #4

Quote:
Originally Posted by .Dare Devil. View Post
as longes i know, weapon entity is in client side and the entity index can not find that way.
Also you don't need entity id, you need weapon id.
what do u mean? :S
proffs is offline
Reply



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 12:57.


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