[HELP] else not working
#1

pawn Код:
CMD:g(playerid,params[])
{
    new rank[50],name[50],text[200],msg[250];
    if(sscanf(params,"s[200]",text)) return SendClientMessage(playerid,-1,"USAGE: /g [text]");
    GetPlayerName(playerid,name,sizeof(name));
    if(PlayerInfo[playerid][pAdmin] > 0)
     {
     format(rank,sizeof(rank),"Admin",name,text);
     }
    else if(PlayerInfo[playerid][pHelper] > 0)
     {
     format(rank,sizeof(rank),"Helper");
     }
    else if(PlayerInfo[playerid][pDonateRank] > 0)
     {
     format(rank,sizeof(rank),"V.I.P.");
     }
    else if(PlayerInfo[playerid][pAdmin] < 0)
     {
     format(rank,sizeof(rank),"Player");
     }
    format(msg,sizeof(msg),"(( %s %s: %s ))",rank,name,text);
    for(new i=0;i<=MAX_PLAYERS;i++)
    {
        if(toggc[i] == 1)
        {
            SendClientMessage(i,COLOR_ORANGE,msg);
        }
        else
        {
         if(toggc[i] == 0)
          {
          SendClientMessage(playerid, COLOR_RED, "======== Use /toggc First! ========");
          }
        }
    }
return 1;
}
Everything works there just on annoying thing it sends the error message even when the msg has been sent i putted it in else it is still showing up
Reply


Messages In This Thread
[HELP] else not working - by ShinichiKudou - 14.03.2014, 15:32
Re: [HELP] else not working - by ShinichiKudou - 14.03.2014, 15:39
Re: [HELP] else not working - by Matess - 14.03.2014, 15:45
Re: [HELP] else not working - by ShinichiKudou - 14.03.2014, 15:49
Re: [HELP] else not working - by ShinichiKudou - 14.03.2014, 15:58
Re: [HELP] else not working - by Matess - 14.03.2014, 16:00
Re: [HELP] else not working - by ShinichiKudou - 14.03.2014, 16:03
Re: [HELP] else not working - by ShinichiKudou - 14.03.2014, 16:37
Re: [HELP] else not working - by ShinichiKudou - 14.03.2014, 16:45
Re: [HELP] else not working - by Psyhophatic - 14.03.2014, 17:32

Forum Jump:


Users browsing this thread: 3 Guest(s)