AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   #include <windows.h> <-- Possible? (https://forums.alliedmods.net/showthread.php?t=100517)

culd 08-15-2009 10:33

#include <windows.h> <-- Possible?
 
Hi I wanna know if its possible to include <windows.h> libraries to use their functions with the amx mod x compiler. If this is possible, how can I do it. Thank you.

Arkshine 08-15-2009 10:34

Re: #include <windows.h> <-- Possible?
 
No.

culd 08-15-2009 10:53

Re: #include <windows.h> <-- Possible?
 
Quote:

Originally Posted by Arkshine (Post 901074)
No.

File.inc contains no function to execute. Where can I find an include file compatible with amx mod x to execute applications.

Arkshine 08-15-2009 11:10

Re: #include <windows.h> <-- Possible?
 
http://forums.alliedmods.net/showthread.php?t=87159

culd 08-15-2009 11:14

Re: #include <windows.h> <-- Possible?
 
Quote:

Originally Posted by Arkshine (Post 901105)

Thanks

AntiBots 08-15-2009 11:18

Re: #include <windows.h> <-- Possible?
 
You can do it. But with the module system. But no In Pawn :D

culd 08-15-2009 11:32

Re: #include <windows.h> <-- Possible?
 
How do AMXX Studio recognizes that include an add?

AntiBots 08-15-2009 11:44

Re: #include <windows.h> <-- Possible?
 
AMXX Work with Pawn method. Amx Dev Team create the natives and func in C++. And add this module to Metamod ( That Call game Func ) So. When Map Start. This module load the .amxx and read the binary code.

You can create a Module and use windows.h and Create some natives. So then with the API you call that Func in windows.h


Sorry my English. I do the best posible :P

culd 08-15-2009 12:25

Re: #include <windows.h> <-- Possible?
 
Quote:

Originally Posted by AntiBots (Post 901135)
AMXX Work with Pawn method. Amx Dev Team create the natives and func in C++. And add this module to Metamod ( That Call game Func ) So. When Map Start. This module load the .amxx and read the binary code.

You can create a Module and use windows.h and Create some natives. So then with the API you call that Func in windows.h


Sorry my English. I do the best posible :P

Do you speak spanish?

Yo hablo espaņol... Si ese es tu idioma nativo, podemos comunicarnos mejor...

Ya tengo un .inc pero cuando uso include no detecta el AMXX Studio, es decir no me deja compilar, como puedo hacer para incluirlo y que el AMXX Studio lo reconozca y pueda compilar?

P34nut 08-15-2009 12:32

Re: #include <windows.h> <-- Possible?
 
for spanish go http://forums.alliedmods.net/forumdisplay.php?f=10

No you cannot include windows.h into your pawn project.. its not C++!
The PAWN compile gets all his includes out of the include folder if you include it like this: #include <myfile>
It can also gets it from the directory where the sma file is located if you include it like this: #include "myfile"


All times are GMT -4. The time now is 15:09.

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