String errors.
#5

https://sampforum.blast.hk/showthread.php?tid=55261
Search: You don't need it (2)
Try:
pawn Код:
dcmd_me(playerid, params[])
{
    new
        msg[128];
    if(sscanf(params, "s[128]", msg)) SendClientMessage(playerid, colorFAIL, "Hasznбlat: /me <szцveg>");
    else if(strlen(msg) > 100) SendClientMessage(playerid, colorFAIL, "Max. 100 karakter!");
    else {
        format(msg, sizeof(msg), "%s %s.", GetName(playerid), msg);
        SendClientMessageToAll(color, msg);
    }
    return true;
}
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: 2 Guest(s)