String errors.
#2

pawn Код:
dcmd_me(playerid, params[])
{
    new
        msg[100],
        str[128];
    if(sscanf(params, "s[100]", msg)) return SendClientMessage(playerid, colorFAIL, "Hasznбlat: /me <szцveg>");
    if(strlen(msg) < 1) return SendClientMessage(playerid, colorFAIL, "Min. 1 karakter!");
    if(strlen(msg) > 100) return SendClientMessage(playerid, colorFAIL, "Max. 100 karakter!");
    format(str, sizeof(str), "%s %s.", GetName(playerid), msg);
    SendClientMessageToAll(color, str);
    return 1;
}
Try that notice the sscanf line

Edit: Noticed msg was 100cells so change sscanf line.
Reply


Messages In This Thread
String errors. - by Nonameman - 01.08.2010, 08:42
Re: String errors. - by iggy1 - 01.08.2010, 08:44
Re: String errors. - by Nonameman - 01.08.2010, 08:45
Re: String errors. - by iggy1 - 01.08.2010, 08:52
Re: String errors. - by smeti - 01.08.2010, 09:40

Forum Jump:


Users browsing this thread: 3 Guest(s)