Pawn to Amx
#1

So I scripted a team dm server in pawn and I need to have 2 files pwn and amx. I got the pwn file how to tranform it in amx.
Reply
#2

Open it with Pawno and hit F5
Reply
#3

Compile it, try to press F5?
Reply
#4

Wait I will try it later I wrongly deleted my script.
Reply
#5

So I tryed to compile many pwn scripts always got the same error:

C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(3) : fatal error 100: cannot read from file: "dini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


And I doesnt apear any amx files.
Reply
#6

Quote:
Originally Posted by Oggle McFoggle
So I tryed to compile many pwn scripts always got the same error:

C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(3) : fatal error 100: cannot read from file: "dini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


And I doesnt apear any amx files.
When your script has any of :

Код:
#include <a_samp>

#include <core>

#include <float>
At the top of it you need to have a_samp.inc/core.inc/float.inc in your pawno/include folder so in your case you need at least dini.inc in that folder and after you put that in you will probably get another error saying cannot read from dutilis or some other
Код:
#include <core>
until they are ALL in that folder


Hope it helps?
Reply
#7

lol now I got more than 1...

C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(36) : error 010: invalid function or declaration
C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(40) : error 010: invalid function or declaration
C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(44) : error 010: invalid function or declaration
C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(4 : error 010: invalid function or declaration
C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(52) : error 010: invalid function or declaration
C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(57) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
C:\DOCUME~1\Mihai\0016~1\32FE~1.PWN(57) : warning 203: symbol is never used: "SetPlayerToTeamColor"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Can you check the script and tell whats the problem?
Код:
#include <a_samp>

#include <core>

#include <float>

#define TEAM_GROVE 1
#define TEAM_BALLA 2
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format)
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple
new gTeam[MAX_PLAYERS];

SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0)
	{
		gTeam[playerid] = TEAM_GROVE;
	}
	else
	{
		gTeam[playerid] = TEAM_BALLA;
	}
}

SetPlayerToTeamColor(playerid)
{
	if (gTeam[playerid] == TEAM_GROVE)
	{
		SetPlayerColor(playerid, TEAM_GROVE_COLOR);
	}
	else if (gTeam[playerid] == TEAM_BALLA)
	{
		SetPlayerColor(playerid, TEAM_BALLA_COLOR);
	}
}
if (classid == 0)
	{
		gTeam[playerid] = TEAM_GROVE;
	}
		else
	{
		gTeam[playerid] = TEAM_BALLA;
	}
		if (gTeam[playerid] == TEAM_GROVE)
	{
		SetPlayerColor(playerid, TEAM_GROVE_COLOR);
	}
		else if (gTeam[playerid] == TEAM_BALLA)
	{
		SetPlayerColor(playerid, TEAM_BALLA_COLOR);
	}
		else
	{
		SetPlayerColor(playerid, TEAM_BALLA_COLOR);
	}
	AddStaticVehicle(411, 2040.2279, 1344.4127, 10.6719, 3.5436, 126, 54);

Reply
#8

auu please somebody take a look at this.
Reply
#9

Quote:
Originally Posted by Mr_Finnigan
Посмотреть сообщение
When your script has any of :

Код:
#include <a_samp>

#include <core>

#include <float>
At the top of it you need to have a_samp.inc/core.inc/float.inc in your pawno/include folder so in your case you need at least dini.inc in that folder and after you put that in you will probably get another error saying cannot read from dutilis or some other
Код:
#include <core>
until they are ALL in that folder


Hope it helps?
I got the same thing, i dont get it... i have #include <dini>...but idk what else to do..
Reply
#10

Nvm the post before i got it... but now i have this

Quote:
C:\Users\*\*\GTA SAN ANDREAS\Hyper-X\gamemodes\*.pwn(2080) : error 017: undefined symbol "HyperXGaming"
C:\Users\*\*\GTA SAN ANDREAS\Hyper-X\gamemodes\*.pwn(2080) : error 017: undefined symbol "s"
C:\Users\*\*\GTA SAN ANDREAS\Hyper-X\gamemodes\*.pwn(2080) : error 029: invalid expression, assumed zero
C:\Users\*\*\GTA SAN ANDREAS\Hyper-X\gamemodes\*.pwn(2080) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)