What is wrong with wanted ..
#1

What is wrong with this command:
Код:
public playerwanted(playerid)
{

	if(IsPlayerConnected(playerid))
	{
	new count;
    for(new i = 0; i < MAX_PLAYERS; i++)
	{
    if(gTeam[i] == 3 && CrimInRange(50.0, playerid,i))
    {
    count = 1;
    }
    }
    if(count == 1)
	{
    WantedLevel[playerid] += 0;
    WantedPoints[playerid] += 0;
    return 1;
	}
    if(WantedLevel[playerid] > 0)
    {
    WantedLevel[playerid] -= 1;
    WantedPoints[playerid] -= 2;
    new string[255];
    new wlevel = WantedLevel[playerid];
    format(string, sizeof(string), "Current Wanted Level: %d", wlevel);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    return 1;
	}
    return 1;
    }

	return 0;
}
My wanted is decreasing and i don't get "Current Wanted Level" in chat
Reply


Messages In This Thread
What is wrong with wanted .. - by qUick1337 - 06.07.2011, 23:42
Re: What is wrong with wanted .. - by Shadoww5 - 07.07.2011, 00:08
Re: What is wrong with wanted .. - by Babul - 07.07.2011, 00:37
Re: What is wrong with wanted .. - by qUick1337 - 07.07.2011, 01:02
Re: What is wrong with wanted .. - by qUick1337 - 07.07.2011, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)