GetRPName (Help Please)
#1

Hello Guys,

I've got some script and it has "GetRPName"

pawn Код:
}

CMD:news(playerid, params[]) {
    new string[128];
    if(isnull(params)) SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/news [message]");
    else if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 3 && playerVariables[playerid][pGroupRank] >= 1)
    {
        switch(playerVariables[playerid][pGroupRank]) {
            case 1: format(string, sizeof(string), "* [NEWS] %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName1], GetRPName(playerid), params);
            case 2: format(string, sizeof(string), "* [NEWS] %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName2], GetRPName(playerid), params);
            case 3: format(string, sizeof(string), "* [NEWS] %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName3], GetRPName(playerid), params);
            case 4: format(string, sizeof(string), "* [NEWS] %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName4], GetRPName(playerid), params);
            case 5: format(string, sizeof(string), "* [NEWS] %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName5], GetRPName(playerid), params);
            case 6: format(string, sizeof(string), "* [NEWS] %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName6], GetRPName(playerid), params);
        }
        SendClientMessageToAll(COLOR_HOTORANGE, string);
    }
    return 1;
}
I know my script doesn't have GetRPName anyone can help me add it?
Reply
#2

Search engines were created so you didn't have to ask someone where to find something or look through crazy online web portals. The same applies here, and trust me, they are really easy to use! All you have to do is type what you need in a popular search engine such as ****** or even the samp forum search and it'll fetch results instantly.

To help you get started with the process of searching, I have created a fun informative link just for you. Click here to search for GetRPName. I wish you all the best on your adventure!

James Carson.
Reply
#3

Hello James,

I've got the codee, does it matter where I add the stock like theres all different stocks but does it matter where?
Reply
#4

It does not, as long as it's not inside any other function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)