Warrning on IF else
#1

Nevermind. I fixed it
Reply
#2

Fixed it for you here, but you can read more about loose indentation here: https://sampforum.blast.hk/showthread.php?tid=256961
pawn Код:
CMD:tyliai(playerid, params[])
{
    if(PlayerInfo[playerid][pMask] == 0)
    {
        new
            string[128],
            tyliai[100];
        if(sscanf(params, "s[100]", tyliai)) return SendClientMessage(playerid, COLOR_GRAD2, "NAUDOJIMAS:"COL_WHITE" /(t)yliai [tekstas]");
        format(string, sizeof(string), "%s tyliai: %s", RPName(playerid),tyliai);
        ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
        ApplyAnimation(playerid, "RIOT", "RIOT_shout",4.1,0,0,0,0,0);
    }
    else
    {
        new
            string[128],
            tyliai[100];
        if(sscanf(params, "s[100]", tyliai)) return SendClientMessage(playerid, COLOR_GRAD2, "NAUDOJIMAS:"COL_WHITE" /(t)yliai [tekstas]");
        format(string, sizeof(string), "Nepaћistamasis tyliai: %s", RPName(playerid),tyliai);
        ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
        ApplyAnimation(playerid, "RIOT", "RIOT_shout",4.1,0,0,0,0,0);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)