Enum loop string
#1

Hello. I'm trying to go through all the string with a loop (for) and then see if is empty and to keep my message. Is it possible to do what I'm doing ?. I pulled the following errors:

Код:
 error 001: expected token: ";", but found "-identifier-"
 error 010: invalid function or declaration
warning 203: symbol is never used: "msj"
warning 203: symbol is never used: "ChatLog"
pawn Код:
CMD:createlog(playerid,[params])
{
    new msj[30];
    if(!sscanf(params, "s[30]",msj))
    {
        for(new i; i < sizeof(ChatLog))
        {
            if(isnull(ChatLog[i]))
            {
                ChatLog[i] = msj;  
            }
            else
            {
                SendClientMessage(playerid, -1, "all slots are filled.");
            }
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "Use /createlog [text]");
    }
    return 1;
}
Reply


Messages In This Thread
Enum loop string - by GranaT3 - 25.10.2015, 22:01
Re: Enum loop string - by Vince - 25.10.2015, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)