message problem
#5

Quote:
Originally Posted by MrAjusshi
Посмотреть сообщение
Try this.

pawn Код:
if(text[0] == ADMCHATKEY && pInfo[playerid][Donator] >= 1)
    {
        format(Jstring,sizeof(Jstring),"{FFEA00}|Admin Chat| %s: %s",GetName(playerid),text[1]);
        foreach(Player, i) if(pInfo[i][Donator] >= 1) SendClientMessage(i,Admchat,Jstring);
        WriteToLog(Jstring,"AdminChat");
        return 0;
    }
pawn Код:
if(text[0] == DONATORCHATKEY && pInfo[playerid][Donator] >= 1)
    {
        format(Jstring,sizeof(Jstring),"{FFEA00}|VIP Chat| %s: %s",GetName(playerid),text[1]);
        foreach(Player, i) if(pInfo[i][Donator] >= 1) SendClientMessage(i,Admchat,Jstring);
        WriteToLog(Jstring,"VIPChatLog");
        return 0;
    }
Are you serious guys? "pInfo[playerid][Donator]" variable does not exist in his script.

You can create a new variable with saving called "vip" or anything you want, And edit your code which is the vip chat to the new variable with saving which you created.

To get full help from me, Just post your enum and tell me which saving system you're using, Y_INI or SQLite or MySQL.
Reply


Messages In This Thread
message problem - by Mijata - 02.07.2017, 00:35
Re: message problem - by Beryllium - 02.07.2017, 00:51
Re: message problem - by NewFreeroamStunt - 02.07.2017, 01:43
Re: message problem - by MrAjusshi - 02.07.2017, 02:30
Re: message problem - by Beryllium - 02.07.2017, 03:28
Re: message problem - by MrAjusshi - 02.07.2017, 04:15
Re: message problem - by Beryllium - 02.07.2017, 05:52

Forum Jump:


Users browsing this thread: 1 Guest(s)