CMD:join(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot do this while being inside a vehicle.");
if(GetPlayerState(playerid) == 1 && PlayerInfo[playerid][pJob] == 0 || PlayerInfo[playerid][pJob2] == 0) {
[COLOR="GREEN"]>>>>[/COLOR] for(new i; i < MAX_DYNAMIC_ACTORS; i++)
{
new Float: i_Pos[3];
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 3.0, i_Pos[0], i_Pos[1], i_Pos[2]))
{
if(ActorInfo[i][a_Type] == 4)
{
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a ATM Driver, type /accept job.");
GettingJob[playerid] = 22;
return 1;
}
if((PlayerInfo[playerid][pVIP] > 0 || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a ATM Driver, type /accept job.");
SendClientMessageEx(playerid, COLOR_YELLOW, "You are getting a secondary job. Only Donator can do this.");
GettingJob2[playerid] = 22;
return 1;
}
}
}
}
[COLOR="Red"]>>>>[/COLOR] for(new i; i < MAX_DYNAMIC_ACTORS; i++)
{
new Float: i_Pos[3];
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 3.0, i_Pos[0], i_Pos[1], i_Pos[2]))
{
if(ActorInfo[i][a_Type] == 5)
{
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a bodyguard, type /accept job.");
GettingJob[playerid] = 8;
return 1;
}
if((PlayerInfo[playerid][pVIP] > 0 || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a bodyguard, type /accept job.");
SendClientMessageEx(playerid, COLOR_YELLOW, "You are getting a secondary job. Only Donator can do this.");
GettingJob2[playerid] = 8;
return 1;
}
}
}
}
[COLOR="Red"]>>>>[/COLOR] for(new i; i < MAX_DYNAMIC_ACTORS; i++)
{
new Float: i_Pos[3];
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 3.0, i_Pos[0], i_Pos[1], i_Pos[2]))
{
if(ActorInfo[i][a_Type] == 6)
{
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a detective, type /accept job.");
GettingJob[playerid] = 1;
return 1;
}
if((PlayerInfo[playerid][pVIP] > 0 || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a detective, type /accept job.");
SendClientMessageEx(playerid, COLOR_YELLOW, "You are getting a secondary job. Only Donator can do this.");
GettingJob2[playerid] = 1;
return 1;
}
}
}
}
[COLOR="Red"]>>>>[/COLOR] for(new i; i < MAX_DYNAMIC_ACTORS; i++)
{
new Float: i_Pos[3];
GetActorPos(ActorInfo[i][a_Actor], i_Pos[0], i_Pos[1], i_Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 3.0, i_Pos[0], i_Pos[1], i_Pos[2]))
{
if(ActorInfo[i][a_Type] == 7)
{
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a lawyer, type /accept job.");
GettingJob[playerid] = 2;
return 1;
}
if((PlayerInfo[playerid][pVIP] > 0 || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a lawyer, type /accept job.");
SendClientMessageEx(playerid, COLOR_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(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Whore, type /accept job.");
GettingJob[playerid] = 3;
return 1;
}
if((PlayerInfo[playerid][pVIP] > 0 || PlayerInfo[playerid][pVIPS] > 0) && PlayerInfo[playerid][pJob2] == 0) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Whore, type /accept job.");
SendClientMessageEx(playerid, COLOR_YELLOW, "You are getting a secondary job. Only Donator can do this.");
GettingJob2[playerid] = 3;
return 1;
}
}
Script.pwn(12775) : warning 217: loose indentation
Script.pwn(12854) : warning 217: loose indentation
Script.pwn(13020) : warning 217: loose indentation
Script.pwn(13029) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
if(PlayerInfo[playerid][pJob] == 0){ return 1; }
if(PlayerInfo[playerid][pJob] == 0) { return 1; }
This is wrong
Код:
if(PlayerInfo[playerid][pJob] == 0){ return 1; } if(PlayerInfo[playerid][pJob] == 0) { return 1; } Try to Fix { } they will be Fixed easily. |
if(PlayerInfo[playerid][pJob] == 0) { return 1; }
This is complete bullsh!t.
Код:
if(PlayerInfo[playerid][pJob] == 0) { return 1; } @Sacrifice, can you please point out the lines that you are showing, so we know which are triggering the warnings? Besides that, includes are there for a reason, grouping your code in several includes is more efficient than having over 10k lines in one file. |
This is complete bullsh!t.
Код:
if(PlayerInfo[playerid][pJob] == 0) { return 1; } @Sacrifice, can you please point out the lines that you are showing, so we know which are triggering the warnings? Besides that, includes are there for a reason, grouping your code in several includes is more efficient than having over 10k lines in one file. |
Script.pwn(12775) : warning 217: loose indentation Script.pwn(12854) : warning 217: loose indentation Script.pwn(13020) : warning 217: loose indentation Script.pwn(13029) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.
Dude Kindly read what he posted.
I'm just telling him the way to fix Lose indecation read before post anything THANKS |