Command Problems
#5

Quote:
Originally Posted by SILENT!
Посмотреть сообщение
Try:

pawn Код:
CMD:me(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_GREY, "SYNTAX:/me [action]");

    new string[128], name;
    GetPlayerName(playerid,name,sizeof(name));
    format(string, sizeof(string), "* %s %s", name, params);
    SendNearbyMessage(playerid, COLOR_ME, string);
    return 1;
}

CMD:do(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_GREY, "SYNTAX:/do [enviornment]");

    new string[128], name;
    GetPlayerName(playerid,name,sizeof(name));
    format(string, sizeof(string), "%s (( %s ))", params, name);
    SendNearbyMessage(playerid, COLOR_ME, string);
    return 1;
}
CMD:b(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_GREY, "SYNTAX:/b [message]");
    if(strlen(params) > 90)
        return SendClientMessage(playerid, COLOR_RED1, "ERROR: Your message cannot be longer than 90 characters.");

    new string[128], name;
    GetPlayerName(playerid,name,sizeof(name))
    format(string, sizeof(string), "(( %s(%d): %s ))", name, playerid, params);
    SendNearbyMessage(playerid, COLOR_GREY, string);
    return 1;
}
Gives 9 errors when adding this one
pawn Код:
gamemodes\TC-RP1.pwn(677) : error 035: argument type mismatch (argument 2)
gamemodes\TC-RP1.pwn(679) : error 017: undefined symbol "SendNearbyMessage"
gamemodes\TC-RP1.pwn(689) : error 035: argument type mismatch (argument 2)
gamemodes\TC-RP1.pwn(689) : error 035: argument type mismatch (argument 2)
gamemodes\TC-RP1.pwn(691) : error 017: undefined symbol "SendNearbyMessage"
gamemodes\TC-RP1.pwn(702) : error 035: argument type mismatch (argument 2)
gamemodes\TC-RP1.pwn(702) : error 035: argument type mismatch (argument 2)
gamemodes\TC-RP1.pwn(704) : error 017: undefined symbol "SendNearbyMessage"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.
Reply


Messages In This Thread
Command Problems - by Tachibana - 22.06.2011, 15:31
Re: Command Problems - by SILENT! - 22.06.2011, 15:34
Re: Command Problems - by Tachibana - 22.06.2011, 15:36
Re: Command Problems - by SILENT! - 22.06.2011, 15:50
Re: Command Problems - by Tachibana - 22.06.2011, 15:57
Re: Command Problems - by Tachibana - 23.06.2011, 01:42
Re: Command Problems - by PrawkC - 23.06.2011, 01:55
Re: Command Problems - by Tachibana - 23.06.2011, 02:01
Re: Command Problems - by Basicz - 23.06.2011, 02:43
Re: Command Problems - by Tachibana - 23.06.2011, 03:26

Forum Jump:


Users browsing this thread: 1 Guest(s)