Some YCMD commands does not work properly
#4

Is sscanf updated to the latest version (plugin and include)?

For those commands that use sscanf with only "s" as specifier, it can be done with isnull too.

An example:
pawn Код:
YCMD:me(playerid, params[], help)
{
    #pragma unused help
    if(isnull(params)) return SCM(playerid, COL_GREY, "Koristite: /me [akcija]");
    new sendername[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s %s", sendername, params);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    printf("%s", string);
    return 1;
}
Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Show us your errors you get , and i suggest you to use ZCMD more faster.
https://sampforum.blast.hk/showthread.php?tid=91354
He doesn't get any errors. If he did, then he wouldn't be able to compile and run it; therebefore, he wouldn't be able to know whether they work or not in-game!

Just to let you know, y_commands is faster than ZCMD.
Reply


Messages In This Thread
Some YCMD commands does not work properly - by TiCa - 09.10.2013, 21:27
Re: Some YCMD commands does not work properly - by TiCa - 10.10.2013, 06:59
Re: Some YCMD commands does not work properly - by SilentSoul - 10.10.2013, 07:20
Re: Some YCMD commands does not work properly - by Konstantinos - 10.10.2013, 09:31

Forum Jump:


Users browsing this thread: 1 Guest(s)