25.06.2016, 12:21
Hello i can't fix that warning/error i tried many times but i'm always fail
So i'm here to post my codes and give me a good way to fix that
Here is the codes :
So i'm here to post my codes and give me a good way to fix that
Here is the codes :
Код:
C:\Users\infogenie\Desktop\Zombies VS Humans V1.1\filterscripts\Handcuffs.pwn(61) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
COMMAND:uncuff(playerid, params[])
{
new id,Cuff[MAX_PLAYERS],Name[MAX_PLAYER_NAME],string[MAX_PLAYERS],pskin = GetPlayerSkin(playerid);
for (new i=0; i<MAX_PLAYERS; i++){
if(pskin == 2 || pskin == 3 || pskin == 4 || pskin == 5 || pskin == 6 || pskin == 7 || pskin == 9 || pskin == 11 || pskin == 12 || pskin == 15 || pskin == 16 || pskin == 19 || pskin == 21 || pskin == 23 || pskin == 29 || pskin == 33 || pskin == 34 || pskin == 41 || pskin == 280 || pskin == 281 || pskin == 282 || pskin == 283 || pskin == 284 || pskin == 285 || pskin == 286 || pskin == 287){
if(sscanf(params,"u", id))return SendClientMessage(playerid, 0xFF0000AA, "Usage: /uncuff [id]");
if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found.");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xC0C0C0FF,"**You can't uncuff someone from a vehicle.");
if(id == playerid)return SendClientMessage(playerid,0xC0C0C0FF,"**You cannot uncuff yourself.");
if(GetDistanceBetweenPlayers(playerid,id)> 2)return SendClientMessage(playerid,0xC0C0C0FF,"You are too far from that player");
else return SendClientMessage(playerid,0xC0C0C0FF,"You dont have permisson to access this command.");
}
{
TogglePlayerControllable(id,true);
}
{
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "Your handcuffs have been removed by %s.",Name);
}
SendClientMessage(i,0xFF0000FF,string);
}
Cuff[id] = 0;
return 1;
}


