|
Member
|
01-23-2024
, 16:29
Re: Plugin not compile [ZPS]
|
#11
|
Quote:
Originally Posted by Grey83
PHP Code:
#pragma semicolon 1 #pragma newdecls required
#include <sdktools_functions>
bool bShow;
public void OnMapStart() { CreateTimer(1.0, Timer_HP, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
HookEvent("round_begins", Event_Round, EventHookMode_PostNoCopy); HookEvent("round_win", Event_Round, EventHookMode_PostNoCopy); }
public void Event_Round(Event event, const char[] name, bool dontBroadcast) { bShow = name[6] == 'b'; }
public Action Timer_HP(Handle timer) { if(!bShow) return Plugin_Continue;
static char cls[16]; for(int i = 1, aim; i <= MaxClients; i++) if(IsClientInGame(i) && !IsFakeClient(i) && IsPlayerAlive(i) && (aim = GetClientAimTarget(i, false)) > MaxClients && GetEntityClassname(aim, cls, sizeof(cls)) && (!strncmp(cls, "func_breakable", 14, false) || (!strncmp(cls, "prop_physics", 12, false))) PrintHintText(i , "Health [ %d / %d ]", GetEntProp(aim, Prop_Data, "m_iHealth"), GetEntProp(aim, Prop_Data, "m_iMaxHealth"));
return Plugin_Continue; }
|
plugin not compile
/groups/sourcemod/upload_tmp/textU0FRni.sp(31) : error 001: expected token: ")", but found "-identifier-"
1 Error
Last edited by ORdli; 01-23-2024 at 16:30.
Reason: have error
|
|
|
|