10.02.2011, 23:42
I've got:
but get:
it's done with SSCANF. Anyone know whats wrong? Thanks.
pawn Код:
if (strcmp("/o", cmdtext, true) == 0)
{
new text,string[70], pName[MAX_PLAYER_NAME];
if(sscanf("s",text)) return SendClientMessage(playerid,COLOR_ERROR,"Usage: /o [Msg]"); // line with error
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"(( %s: %s))",pName,text);
SendClientMessageToAll(COLOR_GREY,string);
return 1;
}
Код:
error 035: argument type mismatch (argument 2)