String problem
#2

don't use /ad with dialog it is annoying just use /ad [text]
if you want it like i stated this is the way:
pawn Code:
CMD:ad(playerid,params[])
{
    new text,string[160],gname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,gname,sizeof(gname));
    if(sscanf(params,"s[50]"text)) return SendClientMessage(playerid,-1, "(ERROR): /ad [ text ] " );
    format(string,sizeof(string),"ADVERTISEMENT[ %s ]: %s",gname,text);
    SendClientMessageToAll(COLORHERE,string);
    return 1;
}
Reply


Messages In This Thread
String problem - by Xenforox - 29.04.2014, 11:53
Re: String problem - by vassilis - 29.04.2014, 11:59
Re: String problem - by Konstantinos - 29.04.2014, 12:00
Re: String problem - by Xenforox - 29.04.2014, 12:08
Re: String problem - by Konstantinos - 29.04.2014, 12:14
Re: String problem - by Xenforox - 29.04.2014, 12:25
Re: String problem - by Konstantinos - 29.04.2014, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)