(1)
new Float:gBallaSP[3][4] = { //Line 387
{1700.44, -1514.54, 13.38},//Spawn1
{1706.92, -1527.90, 13.55},//Spawn2
{1693.10, -1491.20, 13.55},//Spawn3
{1695.63, -1548.36, 13.38},//Spawn4
}
__________________________________________________________________________________
(2)
enum pSpec //Line 523
{
Float:Coords[3],
Float:sPx,
Float:sPy,
Float:sPz,
sPint,
sLocal,
Float:sAngle,
sVw,
sCam,
};
new Unspec[MAX_PLAYERS][pSpec];
________________________________________________________________________________________
(3)
case TEAM_TRIADS:
{
SetPlayerPos(playerid,gTriadsSP[rand][0],gTriadsSP[rand][1],gTriadsP[rand][2]); //Line 2237
SetPlayerFacingAngle(playerid,gTriadsSP[rand][3]);
SetCameraBehindPlayer(playerid);
if(PlayerInfo[playerid][pRank] == 6)
{
SetPlayerSkin(playerid, 294);
}
else if(PlayerInfo[playerid][pRank] == 5)
{
SetPlayerSkin(playerid, 126);
}
else if(PlayerInfo[playerid][pRank] == 4)
{
SetPlayerSkin(playerid, 124);
}
else if(PlayerInfo[playerid][pRank] == 3)
{
SetPlayerSkin(playerid, 125);
}
else if(PlayerInfo[playerid][pRank] == 2)
{
SetPlayerSkin(playerid, 127);
}
else if(PlayerInfo[playerid][pRank] == 1)
{
SetPlayerSkin(playerid, 171);
}
}
(387) : error 001: expected token: ";", but found "new" (523) : error 001: expected token: ";", but found "enum" (2237) : error 017: undefined symbol "gTriadsSP" (2237) : warning 215: expression has no effect (2237) : error 001: expected token: ";", but found "]" (2237) : error 029: invalid expression, assumed zero (2237) : fatal error 107: too many error messages on one line
Use the tag PAWN tag next time. Post the defining of MAX_TEAMS and gInfo.
|
Can you give me more info about "PAWN tag" what is this and how to use it : / I'm newbie soz
|
new TeamInfo[MAX_TEAMS][gInfo]= {
{"Civilian", CIVILIAN_COLOR, 0, 0, 0, 0, 0, "None","None","None","None","City Manager","Mayor",},
{"Grove Street Families", GROVE_COLOR, 0, 0, 0, 0, 0, "Gangsta","Original Gangster","Double OG","Left Hand","Right Hand","Boss"},
{"Rolling Height Ballas", BALLA_COLOR, 0, 0, 0, 0, 0, "Trainee G","Original G","Gangsta","Left Hand","Right Hand","Boss"},
{"Los Santos Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Varrio Los Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Italian Mafia", TRIAD_COLOR, 0, 0, 0, 0, 0, "Driver","Guard","Killer","Manager","Right Hand","Godfather"},
{"Japanese Yakuza", YAKUZA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Vinewood Cripz", CRIPZ_COLOR, 0, 0, 0, 0, 0, "Gangster","Professional Gangsta","Double OG","Triple OG","Co-Boss","Boss"},
{"Los Santos Police", POLICE_COLOR, 0, 0, 0, 0, 0, "Cadet","Officer","Sergeant","Inspector","Assistant Chief","Chief"},
{"Bad Boys", BADBOYS_COLOR, 0, 0, 0, 0, 0, "Gangster","Drug Dealer","Driver","Left Hand","Right Hand","Boss"},
{"Los Santos Army", COLOR_DARKGREEN, 0, 0, 0, 0, 0, "Private","Lieutenant","Captain","Major","Colonel","General"},
{"San Andreas Army Aviation", 0x62620040, 0, 0, 0, 0, 0, "Recruit","Soldier","Major","Captain","Commander","General"},
{"Biker Boys", COLOR_RED, 0, 0, 0, 0, 0, "Trainee biker","Rider","Biker","Left Hand","Right Hand","Boss"},
{"Jizzy's Club", COLOR_PINK, 0, 0, 0, 0, 0, "Messenger","Soldier","Manager","Left Hand","Right Hand","Jizzy"},
{"Las Venturas Bloods", 0xADAD303A, 0, 0, 0, 0, 0, "Gangsta","OG","Double OG","Left Hand","Right Hand","Boss"},
{"Asian Triads", 0xFF80003E, 0, 0, 0, 0, 0, "Dealer","Gangsta","OGangsta","Left Hand","Right Hand","Da Boss"},
{"Los Santos MIB Agents", 0x3AD18D76, 0, 0, 0, 0, 0, "New Agent","Agent","Special Agent","Secret Agent","MIB Agent","Professional Agent"},
{"Russian Mafia", 0x8000FF72, 0, 0, 0, 0, 0, "Driver","Gangster","Original Gangster","Left Hand","Co-Boss","BOSS"},
{"C.I.A", 0x4E00008B, 0, 0, 0, 0, 0, "Agent","Special Agent","Secret Agent","CIA Agent","Professional Agent","BOSS"},
{"FBI", 0x808080FF, 0, 0, 0, 0, 0, "Agent","Agent","Agent","Agent","Agent","Agent"}
}; //Line 304
________________________________________________________________________________________
(2)
new Float:gBallaSP[3][4] = { //Line 387
{1700.44, -1514.54, 13.38},//Spawn1
{1706.92, -1527.90, 13.55},//Spawn2
{1693.10, -1491.20, 13.55},//Spawn3
{1695.63, -1548.36, 13.38},//Spawn4
}
__________________________________________________________________________________
(3)
enum pSpec //Line 523
{
Float:Coords[3],
Float:sPx,
Float:sPy,
Float:sPz,
sPint,
sLocal,
Float:sAngle,
sVw,
sCam,
};
new Unspec[MAX_PLAYERS][pSpec];
________________________________________________________________________________________
(4)
//BALLAS
AddStaticVehicleEx(487,1676.02, -1509.37, 18.72,5,5,600); // BALLAS HELI //Line 774
AddStaticVehicleEx(560,1706.51, -1507.64, 13.17,5,5,600); // BALLAS SULTAN 1
AddStaticVehicleEx(560,1695.70, -1508.53, 13.17,5,5,600); // BALLAS SULTAN 2
AddStaticVehicleEx(411,1695.44, -1516.45, 13.19,5,5,600); // BALLAS Infernus 1
AddStaticVehicleEx(411,1706.87, -1501.55, 13.19,5,5,600); // BALLAS Infernus 2
AddStaticVehicleEx(429,1690.12, -1499.25, 13.23,5,5,600); // BALLAS BANSHEE
AddStaticVehicleEx(579,1708.32, -1536.36, 13.43,5,5,600); // ballas_Huntley
AddStaticVehicleEx(409,1707.08, -1562.70, 13.35,5,5,600); // ballas_Stretch
AddStaticVehicleEx(522,1714.95, -1479.33, 13.13,5,5,600); // BALLAS NRG 1
AddStaticVehicleEx(522,1690.15, -1533.04, 13.12,5,5,600); // BALLAS NRG 2
AddStaticVehicleEx(562,1690.16, -1523.28, 13.22,5,5,600); // BALLAS ELEGY //Line 784
___________________________________________________________________________________________
(5)
case TEAM_TRIADS:
{
SetPlayerPos(playerid,gTriadsSP[rand][0],gTriadsSP[rand][1],gTriadsP[rand][2]); //Line 2237
SetPlayerFacingAngle(playerid,gTriadsSP[rand][3]);
SetCameraBehindPlayer(playerid);
if(PlayerInfo[playerid][pRank] == 6)
{
SetPlayerSkin(playerid, 294);
}
else if(PlayerInfo[playerid][pRank] == 5)
{
SetPlayerSkin(playerid, 126);
}
else if(PlayerInfo[playerid][pRank] == 4)
{
SetPlayerSkin(playerid, 124);
}
else if(PlayerInfo[playerid][pRank] == 3)
{
SetPlayerSkin(playerid, 125);
}
else if(PlayerInfo[playerid][pRank] == 2)
{
SetPlayerSkin(playerid, 127);
}
else if(PlayerInfo[playerid][pRank] == 1)
{
SetPlayerSkin(playerid, 171);
}
}
new Float:gBallaSP[3][4] = { //Line 387
{1700.44, -1514.54, 13.38},//Spawn1
{1706.92, -1527.90, 13.55},//Spawn2
{1693.10, -1491.20, 13.55},//Spawn3
{1695.63, -1548.36, 13.38},//Spawn4
}
new Float:gBallaSP[ 5 ][ 4 ] = { //Line 387
{1700.44, -1514.54, 13.38},//Spawn1
{1706.92, -1527.90, 13.55},//Spawn2
{1693.10, -1491.20, 13.55},//Spawn3
{1695.63, -1548.36, 13.38}//Spawn4
};
Incorrect:
static
Float:random_spawns[ 5 ][ 4 ] =
{
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
};
Correct:
static
Float:random_spawns[ 5 ][ 4 ] =
{
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0}
};