RSSy MYGO.pl Opublikowano Grudzień 3, 2020 o 07:42 RSSy Udostępnij Opublikowano Grudzień 3, 2020 o 07:42 Hi, i need help with my code. HTML Code: plugin.sp(23) : warning 219: local variable "client" shadows a variable at a preceding level plugin.sp(23) : error 017: undefined symbol "event" HTML Code: #include <sourcemod> #include <cstrike> #include <sdktools> #include <sdkhooks> public OnPluginStart() { RegAdminCmd("sm_buyvip", buy, ADMFLAG_RCON); } public Action buy(int client, int args) { int client = GetClientOfUserId(event.GetInt ("userid")); if (GetClientTeam(client) == CS_TEAM_T && GetClientTeam(client) == CS_TEAM_CT) // I know it's unnecessary x { char SteamID[32]; GetClientAuthId(client, AuthId_Steam2, SteamID, 32, true); AddUserFlags(client, ADMFLAG_RESERVATION); } } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi