Commands not working !
#3

Use SendClientMessageToAll and put the ";" missing at the end of the function

pawn Код:
dcmd_announce(playerid,params[])
{
    new text[128],string[128];
    if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,red,error);
    if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,green2,"USAGE: "lyellow2"/announce <message>");
    format(string,sizeof(string),"%s announced: %s",text);
    SendClientMessageToAll(-1, string);
    GameTextForAll(string,4000,3);
    return 1;
}
Reply


Messages In This Thread
Commands not working ! - by Avi57 - 13.07.2012, 12:39
Re: Commands not working ! - by Cxnnor - 13.07.2012, 12:43
Re: Commands not working ! - by .FuneraL. - 13.07.2012, 12:46
Re: Commands not working ! - by clarencecuzz - 13.07.2012, 12:47
Re: Commands not working ! - by Devilxz97 - 13.07.2012, 12:49
Re: Commands not working ! - by leonardo1434 - 13.07.2012, 12:51
Re: Commands not working ! - by clarencecuzz - 13.07.2012, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)