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
#2

pawn Код:
if(sscanf(params,"s[128]", msg))
Reply
#3

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
pawn Код:
if(sscanf(params,"s[128]", msg))
Thanks thats what i was thinking!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)