Posts: 70
Threads: 1
Joined: May 2017
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.