Loose indentation?
#6

Quote:
Originally Posted by Hargrave
Посмотреть сообщение
Thanks, and yeah I will add them in pawn instead from now on, but what did you edit? I mean like I cannot see anything different, but it worked.
Your "return 1;" was something like this I think.
WRONG:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if (realchat)
    {
        new sendername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        sendername[strfind(sendername,"_")] = ' ';
        format(string, sizeof(string), "%s says: %s", sendername, text);
        ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
        new lengthtime = strlen(text);
        new time = lengthtime*50;
        ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0, 0,0,time);
        return 0;
    }
return 1;
}
CORRECT:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if (realchat)
    {
        new sendername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        sendername[strfind(sendername,"_")] = ' ';
        format(string, sizeof(string), "%s says: %s", sendername, text);
        ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
        new lengthtime = strlen(text);
        new time = lengthtime*50;
        ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0, 0,0,time);
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Loose indentation? - by Hargrave - 27.07.2013, 17:31
Re: Loose indentation? - by Necip - 27.07.2013, 17:35
Re: Loose indentation? - by Hargrave - 27.07.2013, 17:37
Re: Loose indentation? - by MellowHammer - 27.07.2013, 17:37
Re: Loose indentation? - by MP2 - 27.07.2013, 17:44
Re: Loose indentation? - by Necip - 27.07.2013, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)