Fusioneq Napisano 21 Września 2020 (edytowane) Mam problem przy kompilacji pluginu pRanks. Chciałem dodać prefixy przed nickiem dla danych flag, aby wyglądało to tak: [ADMIN] *RANGA* NICK: Wiadomość Problem jest przy kompilacji :/ bool IsAdmin(int client) { if (GetUserFlagBits(client) & ADMFLAG_GENERIC) return true; return false; } public Action OnPlayerRunCmd(int client, int &iButtons, int &impulse, float vel[3], float angles[3], int &weapon) { static int iOButtons[MAXPLAYERS + 1]; if (iButtons & IN_SCORE && !(iOButtons[client] & IN_SCORE)) { StartMessageOne("ServerRankRevealAll", client, USERMSG_BLOCKHOOKS); EndMessage(); } iOButtons[client] = iButtons; } /* [ Chat Message ] */ #if defined _chat_processor_included public Action CP_OnChatMessage(int & author, ArrayList recipients, char[] flagstring, char[] name, char[] message, bool & processcolors, bool & removecolors, int client) { if (g_iCvar[19] == 0) return Plugin_Continue; if (HasAcces(client)) { Format(name, MAXLENGTH_NAME, " {darkred}[WLASCICIEL] {gold}%s »{teamcolor} %s", g_sChatTag[g_iRank[author]], name); Format(message, MAXLENGTH_MESSAGE, "%s", message); return Plugin_Changed; } else if (IsAdmin(client)) { Format(name, MAXLENGTH_NAME, " {darkred}[ADMIN] {gold}%s »{teamcolor} %s", g_sChatTag[g_iRank[author]], name); Format(message, MAXLENGTH_MESSAGE, "%s", message); return Plugin_Changed; } else { Format(name, MAXLENGTH_NAME, " {gold}%s »{teamcolor} %s", g_sChatTag[g_iRank[author]], name); Format(message, MAXLENGTH_MESSAGE, "%s", message); return Plugin_Changed; } } #endif a tutaj Co wyskakuje w kompilatorze //SourceMod Batch Compiler // by the SourceMod Dev Team //// pRanks.sp // // Desktop\sourcemod-1.11.0-git6624-windows\addons\sourcemod\scripting\pRanks.sp(1211) : error 181: function argument named 'client' differs from prototype // // 1 Error. // // Compilation Time: 0,36 sec // ---------------------------------------- Press enter to exit ... Linia o którą chodzi public Action CP OnChatMessage(int & author, ArrayList recipients, char[] flagstring, char[] name, char[] message, bool & processcolors, bool & removecolors, int client) { Edytowane 21 Września 2020 przez Fusioneq korekta Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach
y0ung 1 Napisano 21 Września 2020 Dałbyś cały kod a nie tylko część ? Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach
BobPixel 1 1 Napisano 21 Września 2020 Client na author Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach
Fusioneq Napisano 21 Września 2020 @BobPixel dzięki! :) Wszystko śmiga :D Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach
Paweł Napisano 23 Września 2020 Wiadomość wygenerowana automatycznie ✔ Problem został rozwiązany Jeżeli się z tym nie zgadzasz, raportuj ten post Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach