Quote:
Originally Posted by [ISS]jumbo
pawn Код:
COMMAND:o(playerid, params[]) { new text[127]; if(!sscanf(params, "s", text)) { new name[MAX_PLAYER_NAME], string[64]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[OOC]%s say: %s ", name, text); SendClientMessageToAll(0xFFFFFF, string); return 1; } else return SendClientMessage(playerid, 0xFFFFFF, "USAGE: /o [Text]"); }
|
If he uses the plugin, an array size must be added near the 's' .
pawn Код:
if ( !sscanf( params, "s[127]", text ) )