help warning loose indentation -
skiplovebra - 20.04.2018
Код:
./File/GTA-RP.pwn(40301) : loose indentation
./File/GTA-RP.pwn(40304) : loose indentation
./File/GTA-RP.pwn(40321) : loose indentation
Full code
Код:
if(strcmp(params, "xe", true) == 0) {
if(VehicleOffer[playerid] != INVALID_PLAYER_ID) {
if(IsPlayerConnected(VehicleOffer[playerid])) {
if(GetPlayerCash(playerid) > VehiclePrice[playerid]) {
if(IsPlayerInVehicle(VehicleOffer[playerid], PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId])) {
if(!ProxDetectorS(8.0, VehicleOffer[playerid], playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o gan cac dai ly xe hoi");
new playervehicleid = GetPlayerFreeVehicleId(playerid);
if(!vehicleCountCheck(playerid)) {
return SendClientMessage(playerid, COLOR_GRAD2, "Ban khong the so huu bat ky phuong tien nao.");
}
if(!vehicleSpawnCountCheck(playerid)) {
return SendClientMessage(playerid, COLOR_GRAD2, "Ban da co rat nhieu phuong tien duoc dat ra - cua hang dau tien.");
}
new fee;
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] == 0)
{
fee = floatround(THUE_NONVIP*VehiclePrice[playerid]/100);
format(string, sizeof(string), "-$%d so tien tra thue VAT (5 phan tram phi) - so tien con lai:$%s.", fee,number_format(VehiclePrice[playerid]-fee));
SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, string);
}
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] == 1)
{
fee = floatround(THUE_VIPDONG*VehiclePrice[playerid]/100);
format(string, sizeof(string), "-$%d so tien tra thue VAT (3 phan tram phi) - so tien con lai:$%s.", fee,number_format(VehiclePrice[playerid]-fee));SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, string);
}
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] == 2)
{fee = floatround(THUE_VIPBAC*VehiclePrice[playerid]/100);
format(string, sizeof(string), "-$%d so tien tra thue VAT (2 phan tram phi) - so tien con lai:$%s.", fee,number_format(VehiclePrice[playerid]-fee));
SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, string);
}
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] >=3)
{SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, "Vip GOLD-BACH KIMM:Ban khong bi mat tien thue de tra cho dich vu nay");}
new ip[32], ipex[32];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerIp(VehicleOffer[playerid], ipex, sizeof(ipex));
format(szMessage, sizeof(szMessage), "[CAR] %s (IP: %s) da tra $%s cho %s cho %s (IP: %s)", GetPlayerNameEx(playerid), ip, number_format(VehiclePrice[playerid]), GetPlayerNameEx(VehicleOffer[playerid]), GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), ipex);
Log("logs/pay.log", szMessage);
GetPlayerName(VehicleOffer[playerid], giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(szMessage, sizeof(szMessage), "* Ban mua xe %s voi gia $%s, tu %s. (Su dung /carhelp de biet them thong tin)", GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), number_format(VehiclePrice[playerid]), giveplayer);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, szMessage);
format(szMessage, sizeof(szMessage), "* Ban da ban %s cho %s voi gia $%s - ban nhan duoc %d(tru 5.",GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), sendername, number_format(VehiclePrice[playerid]),VehiclePrice[playerid]-fee);
SendClientMessageEx(VehicleOffer[playerid], COLOR_LIGHTBLUE, szMessage);
GivePlayerCashEx(VehicleOffer[playerid], TYPE_ONHAND, VehiclePrice[playerid]-fee);
GivePlayerCashEx(playerid, TYPE_ONHAND, -VehiclePrice[playerid]);
RemovePlayerFromVehicle(VehicleOffer[playerid]);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(VehicleOffer[playerid], slx, sly, slz);
SetPlayerPos(VehicleOffer[playerid], slx, sly, slz+2);
PlayerVehicleInfo[playerid][playervehicleid][pvId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId];
PlayerVehicleInfo[playerid][playervehicleid][pvModelId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvModelId];
PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosX];
PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosY];
PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosZ];
PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosAngle];
PlayerVehicleInfo[playerid][playervehicleid][pvLock] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLock];
PlayerVehicleInfo[playerid][playervehicleid][pvLocked] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLocked];
PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPaintJob];
PlayerVehicleInfo[playerid][playervehicleid][pvColor1] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor1];
PlayerVehicleInfo[playerid][playervehicleid][pvColor2] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor2];
PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvAllowedPlayerId];
PlayerVehicleInfo[playerid][playervehicleid][pvPark] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPark];
PlayerVehicleInfo[playerid][playervehicleid][pvVW] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvVW];
PlayerVehicleInfo[playerid][playervehicleid][pvInt] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvInt];
PlayerVehicleInfo[playerid][playervehicleid][pvWeapons][0] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvWeapons][1] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvWeapons][2] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvPlate] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvTicket] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] = 1;
VehicleSpawned[playerid]++;
for(new m = 0; m < MAX_MODS; m++) {
PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvMods][m];
}
format(szMessage, sizeof(szMessage), "INSERT INTO `vehicles` (`sqlID`) VALUES ('%d')", GetPlayerSQLId(playerid));
mysql_function_query(MainPipeline, szMessage, true, "OnQueryCreateVehicle", "ii", playerid, playervehicleid);
format(szMessage, sizeof(szMessage), "DELETE FROM `vehicles` WHERE `id` = '%d'", PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSlotId]);
mysql_function_query(MainPipeline, szMessage, false, "OnQueryFinish", "ii", SENDDATA_THREAD, VehicleOffer[playerid]);
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSlotId] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvModelId] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosX] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosY] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosZ] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosAngle] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLock] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLocked] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPaintJob] = -1;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor1] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvImpounded] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor2] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvAllowedPlayerId] = INVALID_PLAYER_ID;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPark] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSpawned] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvVW] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvInt] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvWeapons][0] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvWeapons][1] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvWeapons][2] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPlate] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvTicket] = 0;
VehicleSpawned[VehicleOffer[playerid]]--;
for(new m = 0; m < MAX_MODS; m++) {
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvMods][m] = 0;
}
VehicleOffer[playerid] = INVALID_PLAYER_ID;
VehiclePrice[playerid] = 0;
return 1;
}
else {
SendClientMessageEx(playerid, COLOR_GREY, " The Car Dealer is not in the offered car!");
return 1;
}
}
else {
SendClientMessageEx(playerid, COLOR_GREY, " Ban khong the su dung xe!");
return 1;
}
}
return 1;
}
else {
SendClientMessageEx(playerid, COLOR_GREY, " Khong ai duoc cung cap de mua xe moi!");
return 1;
}
}
Re: help warning loose indentation -
jasperschellekens - 20.04.2018
Indent your code properly
Re: help warning loose indentation -
std - 20.04.2018
pawn Код:
f(strcmp(params, "xe", true) == 0) {
if(VehicleOffer[playerid] != INVALID_PLAYER_ID) {
if(IsPlayerConnected(VehicleOffer[playerid])) {
if(GetPlayerCash(playerid) > VehiclePrice[playerid]) {
if(IsPlayerInVehicle(VehicleOffer[playerid], PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId])) {
if(!ProxDetectorS(8.0, VehicleOffer[playerid], playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o gan cac dai ly xe hoi");
new playervehicleid = GetPlayerFreeVehicleId(playerid);
if(!vehicleCountCheck(playerid)) {
return SendClientMessage(playerid, COLOR_GRAD2, "Ban khong the so huu bat ky phuong tien nao.");
}
if(!vehicleSpawnCountCheck(playerid)) {
return SendClientMessage(playerid, COLOR_GRAD2, "Ban da co rat nhieu phuong tien duoc dat ra - cua hang dau tien.");
}
new fee;
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] == 0)
{
fee = floatround(THUE_NONVIP*VehiclePrice[playerid]/100);
format(string, sizeof(string), "-$%d so tien tra thue VAT (5 phan tram phi) - so tien con lai:$%s.", fee,number_format(VehiclePrice[playerid]-fee));
SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, string);
}
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] == 1)
{
fee = floatround(THUE_VIPDONG*VehiclePrice[playerid]/100);
format(string, sizeof(string), "-$%d so tien tra thue VAT (3 phan tram phi) - so tien con lai:$%s.", fee,number_format(VehiclePrice[playerid]-fee));SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, string);
}
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] == 2)
{fee = floatround(THUE_VIPBAC*VehiclePrice[playerid]/100);
format(string, sizeof(string), "-$%d so tien tra thue VAT (2 phan tram phi) - so tien con lai:$%s.", fee,number_format(VehiclePrice[playerid]-fee));
SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, string);
}
if(PlayerInfo[VehicleOffer[playerid]][pDonateRank] >=3)
{SendClientMessageEx(VehicleOffer[playerid], COLOR_GRAD2, "Vip GOLD-BACH KIMM:Ban khong bi mat tien thue de tra cho dich vu nay");}
new ip[32], ipex[32];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerIp(VehicleOffer[playerid], ipex, sizeof(ipex));
format(szMessage, sizeof(szMessage), "[CAR] %s (IP: %s) da tra $%s cho %s cho %s (IP: %s)", GetPlayerNameEx(playerid), ip, number_format(VehiclePrice[playerid]), GetPlayerNameEx(VehicleOffer[playerid]), GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), ipex);
Log("logs/pay.log", szMessage);
GetPlayerName(VehicleOffer[playerid], giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(szMessage, sizeof(szMessage), "* Ban mua xe %s voi gia $%s, tu %s. (Su dung /carhelp de biet them thong tin)", GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), number_format(VehiclePrice[playerid]), giveplayer);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, szMessage);
format(szMessage, sizeof(szMessage), "* Ban da ban %s cho %s voi gia $%s - ban nhan duoc %d(tru 5.",GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), sendername, number_format(VehiclePrice[playerid]),VehiclePrice[playerid]-fee);
SendClientMessageEx(VehicleOffer[playerid], COLOR_LIGHTBLUE, szMessage);
GivePlayerCashEx(VehicleOffer[playerid], TYPE_ONHAND, VehiclePrice[playerid]-fee);
GivePlayerCashEx(playerid, TYPE_ONHAND, -VehiclePrice[playerid]);
RemovePlayerFromVehicle(VehicleOffer[playerid]);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(VehicleOffer[playerid], slx, sly, slz);
SetPlayerPos(VehicleOffer[playerid], slx, sly, slz+2);
PlayerVehicleInfo[playerid][playervehicleid][pvId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId];
PlayerVehicleInfo[playerid][playervehicleid][pvModelId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvModelId];
PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosX];
PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosY];
PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosZ];
PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosAngle];
PlayerVehicleInfo[playerid][playervehicleid][pvLock] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLock];
PlayerVehicleInfo[playerid][playervehicleid][pvLocked] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLocked];
PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPaintJob];
PlayerVehicleInfo[playerid][playervehicleid][pvColor1] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor1];
PlayerVehicleInfo[playerid][playervehicleid][pvColor2] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor2];
PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvAllowedPlayerId];
PlayerVehicleInfo[playerid][playervehicleid][pvPark] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPark];
PlayerVehicleInfo[playerid][playervehicleid][pvVW] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvVW];
PlayerVehicleInfo[playerid][playervehicleid][pvInt] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvInt];
PlayerVehicleInfo[playerid][playervehicleid][pvWeapons][0] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvWeapons][1] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvWeapons][2] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvPlate] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvTicket] = 0;
PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] = 1;
VehicleSpawned[playerid]++;
for(new m = 0; m < MAX_MODS; m++) {
PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvMods][m];
}
format(szMessage, sizeof(szMessage), "INSERT INTO `vehicles` (`sqlID`) VALUES ('%d')", GetPlayerSQLId(playerid));
mysql_function_query(MainPipeline, szMessage, true, "OnQueryCreateVehicle", "ii", playerid, playervehicleid);
format(szMessage, sizeof(szMessage), "DELETE FROM `vehicles` WHERE `id` = '%d'", PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSlotId]);
mysql_function_query(MainPipeline, szMessage, false, "OnQueryFinish", "ii", SENDDATA_THREAD, VehicleOffer[playerid]);
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSlotId] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvModelId] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosX] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosY] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosZ] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosAngle] = 0.0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLock] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLocked] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPaintJob] = -1;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor1] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvImpounded] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor2] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvAllowedPlayerId] = INVALID_PLAYER_ID;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPark] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSpawned] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvVW] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvInt] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvWeapons][0] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvWeapons][1] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvWeapons][2] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPlate] = 0;
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvTicket] = 0;
VehicleSpawned[VehicleOffer[playerid]]--;
for(new m = 0; m < MAX_MODS; m++) {
PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvMods][m] = 0;
}
VehicleOffer[playerid] = INVALID_PLAYER_ID;
VehiclePrice[playerid] = 0;
return 1;
}
else {
SendClientMessageEx(playerid, COLOR_GREY, " The Car Dealer is not in the offered car!");
return 1;
}
}
else {
SendClientMessageEx(playerid, COLOR_GREY, " Ban khong the su dung xe!");
return 1;
}
}
return 1;
}
else {
SendClientMessageEx(playerid, COLOR_GREY, " Khong ai duoc cung cap de mua xe moi!");
return 1;
}
}
Re: help warning loose indentation -
JesterlJoker - 21.04.2018
You could just ignore that you know, it's just indention error and it doesn't have anything to do with the functionality within your code.
P.S
But yeah it'll be a good practice to properly indent your code.