Raised This Month: $32 Target: $400
 8% 

Compiling errors please help me


Post New Thread Reply   
 
Thread Tools Display Modes
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-29-2018 , 11:22   Re: Compiling errors please help me
Reply With Quote #11

I did it
But i got these messages is that ok ?

Quote:
1> semiclip.cpp
1> amxxmodule.cpp
1> Generating Code...
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microso ft.CppBuild.targets(1186,5): warning MSB8012: TargetPath(C:\Users\HTK\Downloads\Compressed\ AMXX Module Compile\source\msvc8\.\Release\semiclip.dll) does not match the Linker's OutputFile property value (C:\Users\HTK\Downloads\Compressed\AMXX Module Compile\source\msvc8\Release\semiclip_amxx.dl l). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microso ft.CppBuild.targets(1188,5): warning MSB8012: TargetName(semiclip) does not match the Linker's OutputFile property value (semiclip_amxx). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1> Creating library .\Release/semiclip.lib and object .\Release/semiclip.exp
1>amxxmodule.obj : error LNK2001: unresolved external symbol "void __cdecl PM_Move(struct playermove_s *,int)" (?PM_Move@@YAXPAUplayermove_s@@H@Z)
1>amxxmodule.obj : error LNK2001: unresolved external symbol "int __cdecl AddToFullPack_Post(struct entity_state_s *,int,struct edict_s *,struct edict_s *,int,int,unsigned char *)" (?AddToFullPack_Post@@YAHPAUentity_state_s@@H PAUedict_s@@1HHPAE@Z)
1>amxxmodule.obj : error LNK2019: unresolved external symbol "void __cdecl UTIL_LogPrintf(char const *,...)" (?UTIL_LogPrintf@@YAXPBDZZ) referenced in function _Meta_Query
1>amxxmodule.obj : error LNK2019: unresolved external symbol "void __cdecl OnAmxxAttach(void)" (?OnAmxxAttach@@YAXXZ) referenced in function _AMXX_Attach
1>.\Release/semiclip_amxx.dll : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Ali0mer is offline
Send a message via Skype™ to Ali0mer
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-29-2018 , 11:30   Re: Compiling errors please help me
Reply With Quote #12

I don't really know what's happening as you didn't post the code. However it looks like some .cpp files weren't included in compilation or something. There may also be something wrong with your amxxmodule.cpp, it's my first time seeing that UTIL_LogPrintf is missing.
__________________
klippy is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-29-2018 , 11:40   Re: Compiling errors please help me
Reply With Quote #13

Can u check this thread
https://forums.alliedmods.net/showth...=227720&page=2
Ali0mer is offline
Send a message via Skype™ to Ali0mer
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-29-2018 , 12:22   Re: Compiling errors please help me
Reply With Quote #14

This message keeps show when i ever try to compile it so how to solve it
Code:
1>------ Build started: Project: semiclip, Configuration: Release Win32 ------
1>  semiclip.cpp
1>  amxxmodule.cpp
1>  Generating Code...
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1186,5): warning MSB8012: TargetPath(C:\Users\HTK\Downloads\Compressed\AMXX Module Compile\msvc8\.\Release\semiclip.dll) does not match the Linker's OutputFile property value (C:\Users\HTK\Downloads\Compressed\AMXX Module Compile\msvc8\Release\semiclip_amxx.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1188,5): warning MSB8012: TargetName(semiclip) does not match the Linker's OutputFile property value (semiclip_amxx). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>     Creating library .\Release/semiclip.lib and object .\Release/semiclip.exp
1>amxxmodule.obj : error LNK2019: unresolved external symbol "void __cdecl UTIL_LogPrintf(char const *,...)" (?UTIL_LogPrintf@@YAXPBDZZ) referenced in function _Meta_Query
1>.\Release/semiclip_amxx.dll : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Ali0mer is offline
Send a message via Skype™ to Ali0mer
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-29-2018 , 17:31   Re: Compiling errors please help me
Reply With Quote #15

Anyone please tell me what to do in this code “sorry for bump”
Ali0mer is offline
Send a message via Skype™ to Ali0mer
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-31-2018 , 07:28   Re: Compiling errors please help me
Reply With Quote #16

Just post the code, it will be easier for everyone. I don't want to keep guessing what's wrong.
__________________
klippy is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-31-2018 , 09:31   Re: Compiling errors please help me
Reply With Quote #17

Hii klipy
Yes i was waiting you i post the code i took it from here its called Module: Parachute
Can you fix it then send it to me with all files without error or i can compile it to .dll
Attached Files
File Type: zip parachute.zip (122.6 KB, 72 views)

Last edited by Ali0mer; 10-31-2018 at 09:33.
Ali0mer is offline
Send a message via Skype™ to Ali0mer
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-31-2018 , 11:33   Re: Compiling errors please help me
Reply With Quote #18

I've managed to a solution for this problem i think i searched a lot then i did something which this problem never came again . I went to Properties then General then to Character set and choose Use Multi-Byte Character Set.
@klippy
Ali0mer is offline
Send a message via Skype™ to Ali0mer
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-31-2018 , 12:11   Re: Compiling errors please help me
Reply With Quote #19

I know that can be an issue sometimes but I have no idea why that was an issue in your case, errors didn't really have anything to do with that at all. Glad you fixed it.
__________________
klippy is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 10-31-2018 , 12:56   Re: Compiling errors please help me
Reply With Quote #20

I got a plugin for the parachute module . Without it module wont work...
but you have to type ingame chat "/fly" then u can use it
Please if u know about plugins could you just remove that cmd and make it for all free
Code Below
Code:
#include <amxmodx>
#include <hamsandwich>
native get_user_parachute(id)
native set_user_parachute(id, set)

public plugin_init()
{
	register_plugin("Fly", "0.0.1", "wbyokomo")
	
	RegisterHam(Ham_Killed, "player", "OnKilled")
	
	register_clcmd("say /fly","CmdGiveFly")
}

public client_disconnect(id)
{
	if(get_user_parachute(id)) set_user_parachute(id, 0);
}

public OnKilled(id)
{
	if(get_user_parachute(id)) set_user_parachute(id, 0);
}

public CmdGiveFly(id)
{
	if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_CONTINUE;
	
	if(get_user_parachute(id))
	{
		client_print(id, print_chat, "[PARACHUTE] You already have a parachute.")
		return PLUGIN_HANDLED;
	}
	
	set_user_parachute(id, 1)
	client_print(id, print_chat, "[PARACHUTE] You got a parachute, hold E to fly.")
	return PLUGIN_HANDLED;
}
Ali0mer is offline
Send a message via Skype™ to Ali0mer
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:07.


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