Quote:
Originally Posted by Jafet_Macario
PHP Code:
CMD:me(playerid, params[])
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof(pName));
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_DGREY"[CMD] / "#COL_SGREY"[Action]");
format(string, sizeof(string), "* %s %s", pName, params);
SendClientMessageToAll(COLOR_RED,string);
return 1;
}
|
Yes, those are working. But now if I use it I didn't learned anything. Can someone show me a example with using sscanf? So I can see what I've did wrong.