[Include] rFunctions© v2.R [Updated]
#4

Quote:

If you find any bugs PM me at foryms.sa-mp.com.

I Think you must fix your typo.

----

pawn Код:
stock SendRangeMessageToPlayer(playerid, Float:Range, Float:x, Float:y, Float:z, color, text[])
{
    if(IsPlayerInRangeOfPoint(playerid,Range,x,y,z))
        {
            SendClientMessage(i,color,text);
        }
}
I Think it's un-compilable!

Fixed one (by me):
pawn Код:
// playerid == prevent the player to send.
// Function name is too long. but you can change it.
stock MessageToPlayersInRangeOfPoint(playerid, Float:x, Float:y, Float:z, Float:range, color, const message[])
{
    new
        ret = 0;

    for(new i = 0; i != MAX_PLAYERS; ++i)
    {
        if(IsPlayerInRangeOfPoint(i, range, x, y, z) && i != playerid)
        {
            SendClientMessage(i, color, message);
            ret++;
        }
    }
    return ret;
}

----

Why you want to forward Stock functions?
pawn Код:
forward Float:GetPlayerHeightDifference(playerid, heightid);
Reply


Messages In This Thread
rFunctions© v3.R [Updated] - by Rittik - 28.06.2014, 14:17
Re: rFunctions Include - by JonathanW - 28.06.2014, 14:27
Re: rFunctions Include - by BroZeus - 28.06.2014, 14:30
Re: rFunctions Include - by iFarbod - 28.06.2014, 14:42
Re: rFunctions Include - by thaKing - 28.06.2014, 15:19
Re: rFunctions Include - by thaKing - 28.06.2014, 15:22
Re: rFunctions Include - by Rittik - 28.06.2014, 16:05
Re: rFunctions Include - by Rittik - 28.06.2014, 16:07
Re: rFunctions Include - by kristo - 01.07.2014, 17:35
Re: rFunctions Include - by Rittik - 02.07.2014, 06:19

Forum Jump:


Users browsing this thread: 1 Guest(s)