Need help in { /r }
#3

Quote:
Originally Posted by Daniel_Davis
Посмотреть сообщение
"SendRadioMessage" is no stock

Try adding
pawn Код:
stock SendToGroup(groupid, colour, string[]) {
    if(groupid > 0) {
        foreach(Player, i) {
            if(playerVariables[i][pStatus] == 1 && playerVariables[i][pGroup] == groupid) {
                SendClientMessage(i, colour, string);
            }
        }
    }
    return 1;
}
Edit it to fit your script then replace SendRadioMessage with SendToGroup

How is it suppose to "switch (PlayerInfo[playerid][pMember])" when you haven't even added that IF in the CMD?
You can add a switch statements without having to add an if statement.

On Topic.
On the line
pawn Код:
format(string, sizeof(string), " %s %s: %s ,over ^", rank, GetPlayerName(playerid), params);
That is a SA-MP native function which looks like this:
pawn Код:
GetPlayerName(playerid, const name[], len))
You did not fill it out correctly instead of using GetPlayerName(playerid), make a stock like this.
pawn Код:
stock GetName(playerid)
{
    new name[24];
    GetPlayerName(playerid,name,sizeof(name));
    return name;
}
What this stock does is it gets a player's name and returns the name as a string,
Now on the line
pawn Код:
format(string, sizeof(string), " %s %s: %s ,over ^", rank, GetPlayerName(playerid), params);
Replace GetPlayerName(playerid) with
Код:
GetName(playerid)
since it matches our stock made above.
Now that should fix two errors, to fix the last one. Post your SendRadioMessage function.
Reply


Messages In This Thread
Need help in { /r } - by Youice - 29.02.2012, 19:39
Re: Need help in { /r } - by BigD - 29.02.2012, 19:41
Re: Need help in { /r } - by Walsh - 01.03.2012, 12:30
Re: Need help in { /r } - by Youice - 01.03.2012, 16:04
Re: Need help in { /r } - by Youice - 01.03.2012, 19:56
Re: Need help in { /r } - by Youice - 01.03.2012, 20:01

Forum Jump:


Users browsing this thread: 4 Guest(s)