And stuck again with this
#3

I don't really understand why you need to use sscanf in this code, there is no need to use sscanf here. It is for unformatting code, not checking if a string is not empty. Here is a fixed example of this code:

pawn Код:
COMMAND:do(playerid, params[])
{
    if(!strlen(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "[SYNTAX]: /do [Environment]");
    new string[128];
    format(string, sizeof(string), "** %s (( %s ))", Character[playerid][cName], params);
    PlayerLocalMessage(15.0, playerid, string, COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE);
    return 1;
}
Reply


Messages In This Thread
And stuck again with this - by iNorton - 23.10.2011, 16:52
Re: And stuck again with this - by SchurmanCQC - 23.10.2011, 16:53
Re: And stuck again with this - by JaTochNietDan - 23.10.2011, 16:55
Re: And stuck again with this - by iNorton - 23.10.2011, 17:00
Re: And stuck again with this - by JaTochNietDan - 23.10.2011, 17:01
Re: And stuck again with this - by iNorton - 23.10.2011, 17:04

Forum Jump:


Users browsing this thread: 2 Guest(s)