05.02.2012, 05:38
Whats this specifier is used for in sscanf? : if(sscanf(params,"sz",msg))
I was checking some threads and found this cmd.
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
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;
}
- Ballu Miaa