WantedLevel issue.
#2

Change this :

PHP код:
    if(gTeam[playerid] == POLICE || GetPlayerWantedLevel(UserInfo[playerid][uWanted]) >= 1)
    {
        
SendClientMessage(playerid, -1"You must have no wanted level to join this class!");
        return 
0;
    } 
to:

Код HTML:
    if(gTeam[playerid] == POLICE || UserInfo[playerid][uWanted] != 0)
    {
        SendClientMessage(playerid, -1, "You must have no wanted level to join this class!");
        return 0;
    }
It's now when it isn't 0 it will send the message.

No need for get wanted level since it is an integer.
Reply


Messages In This Thread
WantedLevel issue. - by LeeXian99 - 05.11.2013, 04:55
Re: WantedLevel issue. - by ikbenremco - 05.11.2013, 05:56
Re: WantedLevel issue. - by LeeXian99 - 05.11.2013, 06:53
Re: WantedLevel issue. - by Zex Tan - 05.11.2013, 09:45
Re: WantedLevel issue. - by JeaSon - 05.11.2013, 09:49
Re: WantedLevel issue. - by SAMProductions - 05.11.2013, 09:49
Re: WantedLevel issue. - by LeeXian99 - 05.11.2013, 09:55
Re: WantedLevel issue. - by Jstylezzz - 05.11.2013, 09:58
Re: WantedLevel issue. - by Zex Tan - 05.11.2013, 10:01
Re: WantedLevel issue. - by JeaSon - 05.11.2013, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)