15.08.2009, 13:31
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.
|
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. |
#include <a_samp> #include <core> #include <float>
#include <core>
: error 010: invalid function or declaration#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);
|
When your script has any of :
Код:
#include <a_samp> #include <core> #include <float> Код:
#include <core> Hope it helps? |
|
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. |