Napisałem prosty kod na info o graczu:
#include <sourcemod>
#pragma semicolon 1
char steamidbuffer[64];
GetClientAuthId(client,AuthId_Steam2,steamidbuffer,sizeof(steamidbuffer));
public void OnPluginStart()
{
RegConsoleCmd("sm_info", MojeDane, "Wyświetal informacje o graczu");
}
public Action MojeDane(int client, int args)
{
PrintToChat(client, "Informacje o Tobie:");
//nick
PrintToChat(client, "Twój nick to %N", client);
//steamid
PrintToChat(client,"Towje SteamID to: %s", steamidbuffer);
return Plugin_Handled;
}
I gdy go kompiluje dostaje taki błąd:
To mój pierwszy skrypt w sm i nie wiem co mogę z tym zrobić