05.03.2010, 10:14
So. I probably this command in dcmd,but don't work.:
/911 2 text ---> wrong id!
/911 2 t
If only write one carachter (t), then work the command. But if write long text no work.
Nobody help. pls..
/911 2 text ---> wrong id!
/911 2 t
If only write one carachter (t), then work the command. But if write long text no work.
Nobody help. pls..
Код:
dcmd_911(playerid, params[]) { new giveplayerid,string; if (!sscanf(params, "ds", giveplayerid, string)){ SendClientMessage(playerid, 0xFF0000FF, "[INFO] USAGE: /911 [plyerid] [Crime]"); }else{ if (IsPlayerConnected(giveplayerid)) { new rname[256]; new cname[256]; GetPlayerName(playerid, rname, sizeof(rname)); GetPlayerName(giveplayerid, cname, sizeof(rname)); new temp[256]; format(temp, sizeof(temp), "[RADIO] %s reported %s %s",rname,cname, string); SendClientMessageToAll(COLOR_YELLOW,temp); }else{ SendClientMessage(playerid, 0xFF0000FF, "[INFO] Wrong ID"); } } return 1; }