30.05.2009, 13:53
Quote:
Originally Posted by Pandabeer1337
where did you put new string[128];
|
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new string[128]; new idx; if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me { if(!cmdtext[3]) return SendClientMessage(playerid, 0xFF0000FF, "USAGE/UŻYCIE: /me [action/akcja]"); new string[128], name[16]; GetPlayerName(playerid, name, sizeof(name)); format(string, 128, "*** %s %s", name, cmdtext[4]); SendClientMessageToAll(COLOR_LIGHTGREEN, string); return 1; }