Raised This Month: $344 Target: $400
 86%   Almost there!

warning 239: 'void' is an illegal tag; use void as a type HOW TO FIX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
snaximus
New Member
Join Date: Jul 2022
Old 07-25-2022 , 12:55   warning 239: 'void' is an illegal tag; use void as a type HOW TO FIX
Reply With Quote #1

public PVers:__version =
{
version = 5,
filevers = "1.10.0-manual",
date = "07/04/2022",
time = "153:21"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[16];
public void:Extension:__ext_core =
{
name = "Core",
file = "core",
autoload = 0,
required = 0,
};
new MaxClients;
new bool:g_bMessagesShown[66];
new ConVar:g_cServerLink;
new ConVar:g_cWebsiteLink;
public Plugin:myinfo =
{
name = "Conmessage",
description = "Connect Message.",
author = "Markie",
version = "1.0.0",
url = "https://nerp.cf/"
};
public void:Event_OnPlayerSpawn(Event:event, String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid", 0));
new var1;
if (client && IsFakeClient(client))
{
return 0;
}
CreateTimer(0.2, 9, GetClientUserId(client), 2);
return 0;
}

public void:OnClientDisconnect(client)
{
g_bMessagesShown[client] = 0;
return 0;
}

public void:OnMapStart()
{
new i = 1;
while (i <= MaxClients)
{
g_bMessagesShown[i] = 0;
i++;
}
return 0;
}

public void:OnPluginStart()
{
g_cServerLink = CreateConVar("sm_cmsg_serverlink", "https://bans-fps.xyz/", "Link to your servers page", 0, false, 0.0, false, 0.0);
g_cWebsiteLink = CreateConVar("sm_cmsg_websitelink", "bans-fps.xyz", "Link to your website", 0, false, 0.0, false, 0.0);
HookEvent("player_spawn", 1, 1);
return 0;
}

public void:Timer_DelaySpawn(Handle:timer, any:data)
{
new client = GetClientOfUserId(data);
new var1;
if (client && IsPlayerAlive(client) && g_bMessagesShown[client])
{
return 0;
}
new String:sServerLink[512];
new String:sWebsiteLink[512];
ConVar.GetString(g_cServerLink, sServerLink, 12;
ConVar.GetString(g_cWebsiteLink, sWebsiteLink, 12;
PrintToChat(client, "WELCOME TO \x02%N", client);
PrintToChat(client, "Come To Play \x021sT ULAANBAATAR\x01.", client, sWebsiteLink);
PrintToChat(client, "FPS.mn developers 2022", client);
PrintToChat(client, "Powered by \x02Itools Co.,Ltd \x01Isp Provider Mongolia.", client, sServerLink);
PrintToChat(client, "Connect Play HAVE FUN!: \[email protected]", client);
g_bMessagesShown[client] = 1;
return 0;
}

public void:ext_core_SetNTVOptional()
{
MarkNativeAsOptional("GetFeatureStatus");
MarkNativeAsOptional("RequireFeature");
MarkNativeAsOptional("AddCommandListener");
MarkNativeAsOptional("RemoveCommandListener") ;
MarkNativeAsOptional("BfWriteBool");
MarkNativeAsOptional("BfWriteByte");
MarkNativeAsOptional("BfWriteChar");
MarkNativeAsOptional("BfWriteShort");
MarkNativeAsOptional("BfWriteWord");
MarkNativeAsOptional("BfWriteNum");
MarkNativeAsOptional("BfWriteFloat");
MarkNativeAsOptional("BfWriteString");
MarkNativeAsOptional("BfWriteEntity");
MarkNativeAsOptional("BfWriteAngle");
MarkNativeAsOptional("BfWriteCoord");
MarkNativeAsOptional("BfWriteVecCoord");
MarkNativeAsOptional("BfWriteVecNormal");
MarkNativeAsOptional("BfWriteAngles");
MarkNativeAsOptional("BfReadBool");
MarkNativeAsOptional("BfReadByte");
MarkNativeAsOptional("BfReadChar");
MarkNativeAsOptional("BfReadShort");
MarkNativeAsOptional("BfReadWord");
MarkNativeAsOptional("BfReadNum");
MarkNativeAsOptional("BfReadFloat");
MarkNativeAsOptional("BfReadString");
MarkNativeAsOptional("BfReadEntity");
MarkNativeAsOptional("BfReadAngle");
MarkNativeAsOptional("BfReadCoord");
MarkNativeAsOptional("BfReadVecCoord");
MarkNativeAsOptional("BfReadVecNormal");
MarkNativeAsOptional("BfReadAngles");
MarkNativeAsOptional("BfGetNumBytesLeft");
MarkNativeAsOptional("BfWrite.WriteBool");
MarkNativeAsOptional("BfWrite.WriteByte");
MarkNativeAsOptional("BfWrite.WriteChar");
MarkNativeAsOptional("BfWrite.WriteShort");
MarkNativeAsOptional("BfWrite.WriteWord");
MarkNativeAsOptional("BfWrite.WriteNum");
MarkNativeAsOptional("BfWrite.WriteFloat");
MarkNativeAsOptional("BfWrite.WriteString");
MarkNativeAsOptional("BfWrite.WriteEntity");
MarkNativeAsOptional("BfWrite.WriteAngle");
MarkNativeAsOptional("BfWrite.WriteCoord");
MarkNativeAsOptional("BfWrite.WriteVecCoord") ;
MarkNativeAsOptional("BfWrite.WriteVecNormal" );
MarkNativeAsOptional("BfWrite.WriteAngles");
MarkNativeAsOptional("BfRead.ReadBool");
MarkNativeAsOptional("BfRead.ReadByte");
MarkNativeAsOptional("BfRead.ReadChar");
MarkNativeAsOptional("BfRead.ReadShort");
MarkNativeAsOptional("BfRead.ReadWord");
MarkNativeAsOptional("BfRead.ReadNum");
MarkNativeAsOptional("BfRead.ReadFloat");
MarkNativeAsOptional("BfRead.ReadString");
MarkNativeAsOptional("BfRead.ReadEntity");
MarkNativeAsOptional("BfRead.ReadAngle");
MarkNativeAsOptional("BfRead.ReadCoord");
MarkNativeAsOptional("BfRead.ReadVecCoord");
MarkNativeAsOptional("BfRead.ReadVecNormal");
MarkNativeAsOptional("BfRead.ReadAngles");
MarkNativeAsOptional("BfRead.BytesLeft.get");
MarkNativeAsOptional("PbReadInt");
MarkNativeAsOptional("PbReadFloat");
MarkNativeAsOptional("PbReadBool");
MarkNativeAsOptional("PbReadString");
MarkNativeAsOptional("PbReadColor");
MarkNativeAsOptional("PbReadAngle");
MarkNativeAsOptional("PbReadVector");
MarkNativeAsOptional("PbReadVector2D");
MarkNativeAsOptional("PbGetRepeatedFieldCount ");
MarkNativeAsOptional("PbSetInt");
MarkNativeAsOptional("PbSetFloat");
MarkNativeAsOptional("PbSetBool");
MarkNativeAsOptional("PbSetString");
MarkNativeAsOptional("PbSetColor");
MarkNativeAsOptional("PbSetAngle");
MarkNativeAsOptional("PbSetVector");
MarkNativeAsOptional("PbSetVector2D");
MarkNativeAsOptional("PbAddInt");
MarkNativeAsOptional("PbAddFloat");
MarkNativeAsOptional("PbAddBool");
MarkNativeAsOptional("PbAddString");
MarkNativeAsOptional("PbAddColor");
MarkNativeAsOptional("PbAddAngle");
MarkNativeAsOptional("PbAddVector");
MarkNativeAsOptional("PbAddVector2D");
MarkNativeAsOptional("PbRemoveRepeatedFieldVa lue");
MarkNativeAsOptional("PbReadMessage");
MarkNativeAsOptional("PbReadRepeatedMessage") ;
MarkNativeAsOptional("PbAddMessage");
MarkNativeAsOptional("Protobuf.ReadInt");
MarkNativeAsOptional("Protobuf.ReadInt64");
MarkNativeAsOptional("Protobuf.ReadFloat");
MarkNativeAsOptional("Protobuf.ReadBool");
MarkNativeAsOptional("Protobuf.ReadString");
MarkNativeAsOptional("Protobuf.ReadColor");
MarkNativeAsOptional("Protobuf.ReadAngle");
MarkNativeAsOptional("Protobuf.ReadVector");
MarkNativeAsOptional("Protobuf.ReadVector2D") ;
MarkNativeAsOptional("Protobuf.GetRepeatedFie ldCount");
MarkNativeAsOptional("Protobuf.SetInt");
MarkNativeAsOptional("Protobuf.SetInt64");
MarkNativeAsOptional("Protobuf.SetFloat");
MarkNativeAsOptional("Protobuf.SetBool");
MarkNativeAsOptional("Protobuf.SetString");
MarkNativeAsOptional("Protobuf.SetColor");
MarkNativeAsOptional("Protobuf.SetAngle");
MarkNativeAsOptional("Protobuf.SetVector");
MarkNativeAsOptional("Protobuf.SetVector2D");
MarkNativeAsOptional("Protobuf.AddInt");
MarkNativeAsOptional("Protobuf.AddInt64");
MarkNativeAsOptional("Protobuf.AddFloat");
MarkNativeAsOptional("Protobuf.AddBool");
MarkNativeAsOptional("Protobuf.AddString");
MarkNativeAsOptional("Protobuf.AddColor");
MarkNativeAsOptional("Protobuf.AddAngle");
MarkNativeAsOptional("Protobuf.AddVector");
MarkNativeAsOptional("Protobuf.AddVector2D");
MarkNativeAsOptional("Protobuf.RemoveRepeated FieldValue");
MarkNativeAsOptional("Protobuf.ReadMessage");
MarkNativeAsOptional("Protobuf.ReadRepeatedMe ssage");
MarkNativeAsOptional("Protobuf.AddMessage");
VerifyCoreVersion();
return 0;
}

Last edited by snaximus; 07-25-2022 at 12:58. Reason: s
snaximus is offline
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 07-25-2022 , 13:48   Re: warning 239: 'void' is an illegal tag; use void as a type HOW TO FIX
Reply With Quote #2

public void: without ":"

Example: public void Event_OnPlayerSpawn(Event:event, String:name[], bool:dontBroadcast)

And if you marked your function return type as "void" you need to delete string like "return 0;" from your code.

Last edited by BRU7US; 07-25-2022 at 13:49.
BRU7US is offline
Cruze
Veteran Member
Join Date: May 2017
Old 07-25-2022 , 23:24   Re: warning 239: 'void' is an illegal tag; use void as a type HOW TO FIX
Reply With Quote #3

Looks like a decompiled version of this. Why not directly compile this instead?
__________________
Taking paid private requests! Add me on steam/discord!
AlliedModders Releases | Github | Private Plugins | Steam | Discord
Cruze is offline
Reply


Thread Tools
Display Modes

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 04:55.


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