/fchat
#5

Quote:
Originally Posted by Jaua10
Посмотреть сообщение
Hey guys im tryint to implement a /fchat in my gm buy i got this problem cuz i dont know hot to define it correctly:

PHP код:
CMD:fchat(playeridparams[])
    {
        if(!
IsPlayerConnected(playerid)) return SendClientMessage(playeridCOLOR_CORRECTION"You're not logged in.");
        if(!
isnull(params))
        {
            new 
string[560];
            if (
PlayerInfo[playerid][pLeader] > || PlayerInfo[playerid][pMember] > 0)
            {
                new 
member PlayerInfo[playerid][pMember];
                if(
member==1)
                {
                    if(
PlayerInfo[playerid][pFaction] == 6) { format(stringsizeof(string), "{99B8F5}[FACTION] (( Commissary %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    else if(
PlayerInfo[playerid][pFaction] == 5) { format(stringsizeof(string), "(( SubCommissary %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    else if(
PlayerInfo[playerid][pFaction] == 4) { format(stringsizeof(string), "(( Mayor %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    else if(
PlayerInfo[playerid][pFaction] == 3) { format(stringsizeof(string), "(( SubMayor %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    else if(
PlayerInfo[playerid][pFaction] == 2) { format(stringsizeof(string), "(( Official %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    else if(
PlayerInfo[playerid][pFaction] == 1) { format(stringsizeof(string), "(( Cadet %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    else { 
format(stringsizeof(string), "(( Helper %s{FFFFFF}: %s {99B8F5}))"GetName(playerid), params); }
                    
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AAstring);
                }
                return 
1;
            }
            else 
SendClientMessage(playeridCOLOR_CORRECTION"You're not in a faction !");
        }
        else 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /f [Text]");
    return 
1;
    } 
Код HTML:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2583) : error 017: undefined symbol "SendFamilyMessage"
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2590) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
can you give me a hand plase?
any help pls?
Reply


Messages In This Thread
/fchat - by Jaua10 - 13.07.2018, 14:50
Re: /fchat - by Florin48 - 13.07.2018, 15:09
Re: /fchat - by Jaua10 - 13.07.2018, 15:10
Re: /fchat - by JasonRiggs - 13.07.2018, 15:11
Re: /fchat - by Jaua10 - 13.07.2018, 17:50
Re: /fchat - by Dayrion - 13.07.2018, 17:59
Re: /fchat - by RedGun2015 - 13.07.2018, 18:04
Re: /fchat - by DerickClark - 13.07.2018, 18:06
Re: /fchat - by Jaua10 - 13.07.2018, 18:07
Re: /fchat - by Jaua10 - 13.07.2018, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)