Raised This Month: $51 Target: $400
 12% 

error compile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
madisonv
Junior Member
Join Date: Dec 2019
Old 05-03-2020 , 01:13   error compile
Reply With Quote #1

HTML Code:
SendHudMsg(client) 
{
	Handle pb = StartMessageOne("HudMsg", client);
 
	PbSetInt(pb, "channel", 1);
	
	float pos[2] = { -1.0, 0.7 };
	PbSetVector2D(pb, "pos", pos);
	
	int color[4] = { 255, 0, 0, 255 };
	PbSetColor(pb, "clr1", color);
	PbSetColor(pb, "clr2", color);
	
	PbSetInt(pb, "effect", 0);
	PbSetFloat(pb, "fade_in_time", 1.0);
	PbSetFloat(pb, "fade_out_time", 1.0);
	PbSetFloat(pb, "hold_time", 5.0);
	PbSetFloat(pb, "fx_time", 0.5);
	
	PbSetString(pb, "text", "NoScope Only");
 
	EndMessage();
}

public Action SendHudMsgTimer(Handle timer) {
	for (int i = 1; i <= MaxClients; i++) {
		if (IsClientInGame(i)) {
			SendHudMsg(i);
		}
	}
	
	return Plugin_Continue;
}
error : new-style declarations are required = SendHudMsg(client)
madisonv is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-03-2020 , 01:47   Re: error compile
Reply With Quote #2

void SendHudMsg(int client)
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
madisonv
Junior Member
Join Date: Dec 2019
Old 05-03-2020 , 02:07   Re: error compile
Reply With Quote #3

thanks brother <3
madisonv is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode