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);
}
}
I chose the wrong department, I wanted to choose sourcemod