27.03.2012, 15:05
Isto deve resolver o seu problema :
Espero ter ajudado .
pawn Код:
if(strcmp(cmd, "/cs", true) == 0)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) idx++;
new offset = idx;
new result[71];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) result[idx - offset] = cmdtext[idx], idx++;
result[idx - offset] = EOS;
if(!strlen(result)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /cs [texto]");
format(result, 71, "~n~ ~w~%s", result);
GameTextForPlayer(playerid, result, 5000, 4);
return true;
}
Espero ter ajudado .