25.04.2014, 00:11
your indentations gave me a stroke.
should only have one bracket.
(I fixed that and changed the indentations so I can read it better for more issues)
Though your code doesn't make sense, what are you trying to do
pawn Код:
if( (
(I fixed that and changed the indentations so I can read it better for more issues)
pawn Код:
if(ServerInfo[AdminOnlySkins] == 1)
{
if(GetPlayerSkin(playerid) == ServerInfo[AdminSkin])
{
if(PlayerInfo[playerid][Level] >= 1)
{
SetPlayerHealth(playerid, 100);
}
else
{
if(PlayerInfo[playerid][Level] >= 0)
{
SendClientMessage(playerid, red, "You are not an admin to use this skin");
}
}
}
return 0;
}