Pawn to Amx
#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


Messages In This Thread
Pawn to Amx - by Oggle McFoggle - 15.08.2009, 13:31
Re: Pawn to Amx - by Dark_Kostas - 15.08.2009, 13:32
Re: Pawn to Amx - by Correlli - 15.08.2009, 13:32
Re: Pawn to Amx - by Oggle McFoggle - 15.08.2009, 13:39
Re: Pawn to Amx - by Oggle McFoggle - 15.08.2009, 13:48
Re: Pawn to Amx - by Mr_Finnigan - 15.08.2009, 13:52
Re: Pawn to Amx - by Oggle McFoggle - 15.08.2009, 14:08
Re: Pawn to Amx - by Oggle McFoggle - 15.08.2009, 14:29
Re: Pawn to Amx - by jokajoey78 - 13.05.2012, 05:34
Re: Pawn to Amx - by jokajoey78 - 13.05.2012, 05:54

Forum Jump:


Users browsing this thread: 3 Guest(s)