15.08.2009, 14:08
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?
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);