18.04.2015, 12:30
Hello, I have scripted /pm.
I type /pm [id..] heeeeeeeeeeeeeeeeyyy.....1915919591
But, It sends: heeeeeeeeeeeeeeeeyyy...
Can someone tell me the problem please?:
I type /pm [id..] heeeeeeeeeeeeeeeeyyy.....1915919591
But, It sends: heeeeeeeeeeeeeeeeyyy...
Can someone tell me the problem please?:
Код:
CMD:pm(playerid, params[]) { new ID, string[300], str[128]; if(sscanf(params, "us", ID, str)) return SCM(playerid, COLOR_WHITE, ""WORD_USAGE"/pm [PLAYER_ID] [MESSAGE]"); if(!IsPlayerConnected(ID)) return SCM(playerid, COLOR_WHITE, ""WORD_ERROR"This player is not connected."); format(string, sizeof(string), ""COL_YELLOW"[MESSAGE]{FFFFFF} To %s(%d): {C4C4C4}%s", PlayerName(ID), ID, str); SCM(playerid, COLOR_WHITE, string); format(string, sizeof(string), ""COL_YELLOW"[MESSAGE]{FFFFFF} From %s(%d): {C4C4C4}%s", PlayerName(playerid), playerid, str); SCM(ID, COLOR_WHITE, string); return 1; }