Author
|
Message
|
Member
Join Date: Feb 2018
Location: Romania
|
01-07-2020
, 12:38
asd
|
#1
|
can someone explain to me where should define this because i edited script to new enum structs
Spoiler
PHP Code:
error 017: undefined symbol "Name" error 017: undefined symbol "Chat"
Spoiler
PHP Code:
enum struct ChatData { char Chat[128]; char Name[128]; char ChatHex[16]; char NameHex[128]; char Tag[128]; }
ChatData g_iPlayerInfo[MAXPLAYERS + 1];
public Action CP_OnChatMessage(int& iAuthor, ArrayList hRecipients, char[] szFlagString, char[] szName, char[] szMessage, bool& bProcessColors, bool& bRemoveColors) { if (GetUserFlagBits(iAuthor) & ADMFLAG_ROOT) { Format(szName, MAXLENGTH_NAME, "\x01★ \x01[ \x02 Staff\x01 ] %s\x10%s\x06"/* name */, g_sColorCodes[g_iPlayerInfo[iAuthor][Name]], szName);// error 017: undefined symbol "Name" Format(szMessage, MAX_MESSAGE_LENGTH, "%s\x04%s"/*chat */, g_sColorCodes[g_iPlayerInfo[iAuthor][Chat]], szMessage); // error 017: undefined symbol "Chat" } }
sorry for the title, i forgot to edit it
Last edited by Stefanx; 01-07-2020 at 12:53.
|
|
|
|