Help with /getjob.
#3

Why dont you use cases and InRangeOf code like this? Its better than yours.

PHP код:
if(IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z Coordinates) {
            if(
PlayerInfo[playerid][pJob] == 0){
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"You have signed in the papers and you are not workign for (job name)");
                
pInfo[playerid][pJob] = 1;
                return 
1;
            }
}
        else if(
IsPlayerInRangeOfPoint(playerid3.0X,Y,Z Coordinates)) {
            if(
PlayerInfo[playerid][pJob] == 0){
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* You have signed up in the papers and you are now working for (job name)");
                
pInfo[playerid][pJob] = 2;
                return 
1;
            }
        }
        else if (
IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z Coordinates ._.)) {
            if(
PlayerInfo[playerid][pJob] == 0){
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"*You have signed up in the papers and you are now working for (job name)");
                
pInfo[playerid][pJob] = 3;
                return 
1;
            } 
Reply


Messages In This Thread
Help with /getjob. - by danielpalade - 05.02.2016, 21:54
Re: Help with /getjob. - by Sascha - 05.02.2016, 21:56
Re: Help with /getjob. - by TopShooter - 05.02.2016, 22:02
Re: Help with /getjob. - by ikey07 - 05.02.2016, 22:16
Re: Help with /getjob. - by danielpalade - 05.02.2016, 22:18
Re: Help with /getjob. - by danielpalade - 05.02.2016, 22:21
Re: Help with /getjob. - by danielpalade - 05.02.2016, 22:26
Re: Help with /getjob. - by TopShooter - 05.02.2016, 22:39
Re: Help with /getjob. - by danielpalade - 06.02.2016, 01:03
Re: Help with /getjob. - by danielpalade - 06.02.2016, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)