if(sscanf(params,"sz",msg))
#1

Whats this specifier is used for in sscanf? : if(sscanf(params,"sz",msg))
I was checking some threads and found this cmd.
pawn Код:
COMMAND:me(playerid, params[])
    {
        new string[128],msg[128],pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pname,sizeof(pname));
        if(sscanf(params,"sz",msg)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /me <text>");
        format(string,sizeof(string),"* %s %s",pname,msg);
        SendClientMessageToAll(COLOR_LIGHTBLUE,string);
        return 1;
    }
How can convert this command to input a string of size 128 cells?? If someone can show me how to will be awesome? Or if you can tell me explain me the specifier used in the above command will be great.

- Ballu Miaa
Reply


Messages In This Thread
if(sscanf(params,"sz",msg)) - by Ballu Miaa - 05.02.2012, 05:38
Re: if(sscanf(params,"sz",msg)) - by T0pAz - 05.02.2012, 05:49
Re: if(sscanf(params,"sz",msg)) - by Ballu Miaa - 05.02.2012, 05:58

Forum Jump:


Users browsing this thread: 1 Guest(s)