Problem with CMD
#1

Hello, I'm trying to fix my /join CMD that you need to be at the right actor type but it isn't working I need some help


PHP код:
CMD:join(playeridparams[])
{
        if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playeridCOLOR_GRAD1"You cannot do this while being inside a vehicle.");
        if(
GetPlayerState(playerid) == && PlayerInfo[playerid][pJob] == || PlayerInfo[playerid][pJob2] == 0) {
[
COLOR="GREEN"]>>>>[/COLOR]        for(new iMAX_DYNAMIC_ACTORSi++)
          {
                      new 
Floati_Pos[3];
                      
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
                    if(
IsPlayerInRangeOfPoint(playerid3.0i_Pos[0], i_Pos[1], i_Pos[2]))
                    {
               if(
ActorInfo[i][a_Type] == 4)
               {
                    if(
PlayerInfo[playerid][pJob] == 0){
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a ATM Driver, type /accept job.");
                    
GettingJob[playerid] = 22;
                    return 
1;
                    }
                    if((
PlayerInfo[playerid][pVIP] > || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
                        
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a ATM Driver, type /accept job.");
                        
SendClientMessageEx(playeridCOLOR_YELLOW"You are getting a secondary job. Only Donator can do this.");
                        
GettingJob2[playerid] = 22;
                        return 
1;
                        }
                    }
                }
            }
[
COLOR="Red"]>>>>[/COLOR]            for(new iMAX_DYNAMIC_ACTORSi++)
            {
            new 
Floati_Pos[3];
            
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
            if(
IsPlayerInRangeOfPoint(playerid3.0i_Pos[0], i_Pos[1], i_Pos[2]))
            {
            if(
ActorInfo[i][a_Type] == 5)
            {
                    if(
PlayerInfo[playerid][pJob] == 0){
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a bodyguard, type /accept job.");
                    
GettingJob[playerid] = 8;
                    return 
1;
                    }
                    if((
PlayerInfo[playerid][pVIP] > || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
                        
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a bodyguard, type /accept job.");
                        
SendClientMessageEx(playeridCOLOR_YELLOW"You are getting a secondary job. Only Donator can do this.");
                        
GettingJob2[playerid] = 8;
                        return 
1;
                        }
                    }
                }
            }
[
COLOR="Red"]>>>>[/COLOR]            for(new iMAX_DYNAMIC_ACTORSi++)
            {
              new 
Floati_Pos[3];
            
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
            if(
IsPlayerInRangeOfPoint(playerid3.0i_Pos[0], i_Pos[1], i_Pos[2]))
            {
            if(
ActorInfo[i][a_Type] == 6)
            {
                    if(
PlayerInfo[playerid][pJob] == 0){
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a detective, type /accept job.");
                    
GettingJob[playerid] = 1;
                    return 
1;
                    }
                    if((
PlayerInfo[playerid][pVIP] > || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
                        
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a detective, type /accept job.");
                        
SendClientMessageEx(playeridCOLOR_YELLOW"You are getting a secondary job. Only Donator can do this.");
                        
GettingJob2[playerid] = 1;
                        return 
1;
                        }
                    }
                }
            }
[
COLOR="Red"]>>>>[/COLOR]            for(new iMAX_DYNAMIC_ACTORSi++)
            {
            new 
Floati_Pos[3];
            
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
             if(
IsPlayerInRangeOfPoint(playerid3.0i_Pos[0], i_Pos[1], i_Pos[2]))
            {
            if(
ActorInfo[i][a_Type] == 7)
            {
                    if(
PlayerInfo[playerid][pJob] == 0){
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a lawyer, type /accept job.");
                    
GettingJob[playerid] = 2;
                    return 
1;
                    }
                    if((
PlayerInfo[playerid][pVIP] > || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
                        
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a lawyer, type /accept job.");
                        
SendClientMessageEx(playeridCOLOR_YELLOW"You are getting a secondary job. Only Donator can do this.");
                        
GettingJob2[playerid] = 2;
                        return 
1;
                        }
                    }
                }
            }
            if (
IsPlayerInRangeOfPoint(playerid,3.0,1215.1304,-11.8431,1000.9219)) {
                if(
PlayerInfo[playerid][pJob] == 0){
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a Whore, type /accept job.");
                    
GettingJob[playerid] = 3;
                    return 
1;
                }
                if((
PlayerInfo[playerid][pVIP] > || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"* If you are sure to become a Whore, type /accept job.");
                    
SendClientMessageEx(playeridCOLOR_YELLOW"You are getting a secondary job. Only Donator can do this.");
                    
GettingJob2[playerid] = 3;
                    return 
1;
                }
            } 
PHP код:
Script.pwn(12775) : warning 217loose indentation
Script
.pwn(12854) : warning 217loose indentation
Script
.pwn(13020) : warning 217loose indentation
Script
.pwn(13029) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
4 Warnings

Is there any wait to fix this how can I add simple new lines with other jobs
Reply


Messages In This Thread
Problem with CMD - by IndependentGaming - 17.05.2016, 09:13
Re: Problem with CMD - by IndependentGaming - 17.05.2016, 09:42
Re: Problem with CMD - by MBilal - 17.05.2016, 09:46
Re: Problem with CMD - by JasperM - 17.05.2016, 09:49
Re: Problem with CMD - by SyS - 17.05.2016, 09:49
Re: Problem with CMD - by IndependentGaming - 17.05.2016, 09:54
Re: Problem with CMD - by SyS - 17.05.2016, 09:56
Re: Problem with CMD - by JasperM - 17.05.2016, 09:56
Re: Problem with CMD - by MBilal - 17.05.2016, 10:25
Re: Problem with CMD - by GhostHacker - 17.05.2016, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)