Why it isn't working?
#4

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:

public WeaponsOnStuntMap()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInArea((i), 1874.8333,1599.4434,2254.5999,2629.1636) == 1)
{
SetPlayerArmedWeapon((i), 0);
}
}
}
}
Delete the things in bold.
(1355) : warning 206: redundant test: constant expression is non-zero
line 1355:
pawn Код:
if(IsPlayerInArea(i, 1874.8333,1599.4434,2254.5999,2629.1636))
Quote:
Originally Posted by _Saif_
add
Код:
else 
ResetPlayerWeapons(i);
I suggest to use IsPlayerInRangeOfPoint

didn't undestand

PD: sorry for my bad english.
Reply


Messages In This Thread
Why it isn't working? - by TheChaoz - 30.12.2009, 02:24
Re: Why it isn't working? - by [HiC]TheKiller - 30.12.2009, 02:41
Re: Why it isn't working? - by Deat_Itself - 30.12.2009, 03:43
Re: Why it isn't working? - by TheChaoz - 30.12.2009, 11:27
Re: Why it isn't working? - by TheChaoz - 30.12.2009, 23:39

Forum Jump:


Users browsing this thread: 1 Guest(s)