при компиляцииУ меня так:
PHP:#include <vip_core> #include <throwing_knives_core> #pragma newdecls required #pragma semicolon 1 #define VIP_TK "ThrowingKnives" public void OnPluginStart() { HookEvent("player_spawn", PlayerSpawn); if(VIP_IsVIPLoaded()) { VIP_OnVIPLoaded(); } } public int VIP_OnVIPLoaded() { VIP_RegisterFeature(VIP_TK, INT); } public Action PlayerSpawn(Event event, const char[] name, bool dbc) { int iClient = GetClientOfUserId(event.GetInt("userid")); if(iClient && VIP_IsClientVIP(iClient) && VIP_IsClientFeatureUse(iClient, VIP_TK) && !IsFakeClient(iClient)) { TKC_SetClientKnives(iClient, VIP_GetClientFeatureInt(iClient, VIP_TK)); } } public void OnPluginEnd() { if(CanTestFeatures() && GetFeatureStatus(FeatureType_Native, "VIP_TK") == FeatureStatus_Available) { VIP_UnregisterFeature(VIP_TK); } }
//// VIP_ThrowingKnives_1.2.sp
//
// VIP_ThrowingKnives_1.2.sp(19) : error 180: function return type differs from prototype. expected 'void', but got 'int'
//
// 1 Error.
//
// Compilation Time: 0,11 sec
// ----------------------------------------