/me and /do - 2 lines
#4

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
Here.
pawn Код:
SendCustomPlayerMessage(Float:radi, playerid, text[], col1, col2, col3, col4, col5)
{
    if(strlen(text) > 98)
    {
        new text1[99],
            text2[99],
            string[196];

        strmid(text2, text, 98, 196);
        strmid(text1, text, 0, 98);

        format(string, 196, "%s...", text1);
        ProxDetector(radi, playerid, string, col1, col2, col3, col4, col5);
       
        format(string, 196, "...%s", text2);
        ProxDetector(radi, playerid, string, col1, col2, col3, col4, col5);
    }
    else ProxDetector(radi, playerid, text, col1, col2, col3, col4, col5);
}
Add that and replace
pawn Код:
SendNearbyMessage
to
pawn Код:
SendCustomPlayerMessage
pawn Код:
stock SendCustomPlayerMessage(Float:radi, playerid, text[], col1, col2, col3, col4, col5)
{
    if(strlen(text) > 98)
    {
        new text1[99],
            text2[99],
            string[196];

        strmid(text2, text, 98, 196);
        strmid(text1, text, 0, 98);

        format(string, 196, "%s ...", text1);
        ProxDetector(radi, playerid, string, col1, col2, col3, col4, col5);

        format(string, 196, "... %s", text2);
        ProxDetector(radi, playerid, string, col1, col2, col3, col4, col5);
    }
    else ProxDetector(radi, playerid, text, col1, col2, col3, col4, col5);
}
pawn Код:
CMD:me(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
    if(AntiAdv(playerid, params)) return 1;
    format(string, sizeof(string), "* %s %s", RPN(playerid), params);
    SendCustomPlayerMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    return 1;
}
When i compile:

pawn Код:
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(637) : error 017: undefined symbol "ProxDetector"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(640) : error 017: undefined symbol "ProxDetector"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(642) : error 017: undefined symbol "ProxDetector"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "col5"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "col4"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "col3"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "col2"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "col1"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "playerid"
C:\Users\Iuly\Desktop\Desk\Sictir RolePlay\gamemodes\ZRP.pwn(625) : warning 203: symbol is never used: "radi"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
/me and /do - 2 lines - by Iuly1234 - 16.06.2013, 19:33
Re: /me and /do - 2 lines - by Scenario - 16.06.2013, 20:09
Re: /me and /do - 2 lines - by dannyk0ed - 16.06.2013, 20:29
Re: /me and /do - 2 lines - by Iuly1234 - 17.06.2013, 07:16
Re: /me and /do - 2 lines - by Pottus - 17.06.2013, 07:28
Re: /me and /do - 2 lines - by Iuly1234 - 17.06.2013, 19:31
Re: /me and /do - 2 lines - by lean1337 - 17.06.2013, 20:42
Re: /me and /do - 2 lines - by Red_Dragon. - 18.06.2013, 00:01
Re: /me and /do - 2 lines - by Iuly1234 - 18.06.2013, 06:52
Re: /me and /do - 2 lines - by Iuly1234 - 19.06.2013, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)