03.12.2010, 23:24
Bueno, acabo de hacer este comando:
їQue esta mal?
No me sale ningun error, pero cuando entro a mi server el comando me sale como que no existe.
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(hi, 2, cmdtext); return 0; } dcmd_hi(playerid, params[]) { new pid; new string[256]; if(sscanf(params, "u", pid)) { SendClientMessage(playerid, COLOR_YELLOW,"[ ! ] /hi <playerid>"); } else if(IsPlayerConnected(pid)) return SendClientMessage(playerid, COLOR_RED,"[ ! ] This player is not connected"); else { SendClientMessage(pid, COLOR_GREEN,"[ ! ] Hi"); format(string, sizeof(string), "[ ! ] You said 'Hi' to %s", pid); SendClientMessage(playerid, COLOR_GREEN, string); return 1; } return 0; } |
No me sale ningun error, pero cuando entro a mi server el comando me sale como que no existe.
