22.05.2014, 12:10
( 7720 ) : warning 217: loose indentation
( 29988 ) : warning 217: loose indentation
( 30119 ) : warning 217: loose indentation
Код:
stock WepPlayer(playerid, giveplayerid) // playerid = Gifter. giveplayerid = gift receiver { if(PlayerInfo[playerid][pAdmin] >= 2 || playerid == MAX_PLAYERS) { new wep = Random(1, 7); if(wep == 1) { if(PlayerInfo[giveplayerid][pConnectTime] < 2 || PlayerInfo[giveplayerid][pWRestricted] > 0) return WepPlayer(playerid, giveplayerid); GivePlayerValidWeapon(giveplayerid, 27, 30); GivePlayerCash(playerid, -50000); SendClientMessageEx(giveplayerid, COLOR_GRAD2, " You recieved a Combat Shotgun from the China Imports"); } else if(wep == 2) { if(PlayerInfo[giveplayerid][pConnectTime] < 2 || PlayerInfo[giveplayerid][pWRestricted] > 0) return WepPlayer(playerid, giveplayerid); GivePlayerValidWeapon(giveplayerid, 28, 80); GivePlayerCash(playerid, -50000); SendClientMessageEx(giveplayerid, COLOR_GRAD2, " You recieved a Micro Uzi from the China Imports"); } else if(wep == 4) { if(PlayerInfo[giveplayerid][pConnectTime] < 2 || PlayerInfo[giveplayerid][pWRestricted] > 0) return WepPlayer(playerid, giveplayerid); GivePlayerValidWeapon(giveplayerid, 30, 85); GivePlayerCash(playerid, -50000); SendClientMessageEx(giveplayerid, COLOR_GRAD2, " You recieved a AK47 from the China Imports"); } else if(wep == 5) { if(PlayerInfo[giveplayerid][pConnectTime] < 2 || PlayerInfo[giveplayerid][pWRestricted] > 0) return WepPlayer(playerid, giveplayerid); GivePlayerValidWeapon(giveplayerid, 31, 85); GivePlayerCash(playerid, -50000); SendClientMessageEx(giveplayerid, COLOR_GRAD2, " You recieved a M4A1 from the China Imports"); } else if(wep == 6) { if(PlayerInfo[giveplayerid][pConnectTime] < 2 || PlayerInfo[giveplayerid][pWRestricted] > 0) return WepPlayer(playerid, giveplayerid); GivePlayerValidWeapon(giveplayerid, 32, 80); GivePlayerCash(playerid, -50000); SendClientMessageEx(giveplayerid, COLOR_GRAD2, " You recieved a TEC9 from the China Imports"); } PlayerInfo[giveplayerid][pWepTime] = 300; } return 1; -- > This is the line 7720 }
Код:
// FBI Rancher case 490: { obj1[vehicleid] = CreateDynamicObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); //grill AttachDynamicObjectToVehicle(obj1[vehicleid], vehicleid, -0.02, 2.18, -0.15, 0.00, 0.00, 0.00); } default: { return SendClientMessage(playerid, -1, "* You are not in a code 2 compatible police vehicle! *"); } } format(string, sizeof(string), "* %s flicks the switch on the center console, activating the emergency lights", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { if (IsValidDynamicObject(obj1[vehicleid]) || IsValidDynamicObject(obj2[vehicleid]) || IsValidDynamicObject(obj3[vehicleid])) { DestroyDynamicObject(obj1[vehicleid]), DestroyDynamicObject(obj2[vehicleid]), DestroyDynamicObject(obj3[vehicleid]); format(string, sizeof(string), "* %s flicks the switch on the center console, deactivating the emergency lights", GetPlayerNameEx(playerid)); -- > Line 29988 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } return 1; } else return SendClientMessage(playerid, -1, "You are not a Law Enforcement Officer"); }
Код:
// FBI Rancher case 490: { obj1[vehicleid] = CreateDynamicObject(19294, 10.0, 10.0, 10.0, 0, 0, 0); //grill obj2[vehicleid] = CreateDynamicObject(19290, 10.0, 10.0, 10.0, 0, 0, 0); //rear obj3[vehicleid] = CreateDynamicObject(19292, 10.0, 10.0, 10.0, 0, 0, 0); //rear AttachDynamicObjectToVehicle(obj1[vehicleid], vehicleid, 0, -1.67, 0.5, 0.00, 0.00, 0.00); AttachDynamicObjectToVehicle(obj2[vehicleid], vehicleid, -0.60, -1.67, 0.39, 0.00, 0.00, 0.00); AttachDynamicObjectToVehicle(obj3[vehicleid], vehicleid, 0.50, -1.67, 0.39, 0.00, 0.00, 0.00); } default: { return SendClientMessage(playerid, -1, "* You are not in a compatible police vehicle! *"); } } format(string, sizeof(string), "* %s flicks the switch on the center console, activating the rear lights", GetPlayerNameEx(playerid)); -- > Line 30119 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { if (IsValidDynamicObject(obj1[vehicleid]) || IsValidDynamicObject(obj2[vehicleid]) || IsValidDynamicObject(obj3[vehicleid])) { DestroyDynamicObject(obj1[vehicleid]), DestroyDynamicObject(obj2[vehicleid]), DestroyDynamicObject(obj3[vehicleid]); format(string, sizeof(string), "* %s flicks the switch on the center console, deactivating the rear lights", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } return 1; }