A lot of errors!Please some help
#1

Codes:
pawn Код:
(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);
            }
       }
Errors:
Код:
(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
Reply
#2

Use the tag PAWN tag next time. Post the defining of MAX_TEAMS and gInfo.
Reply
#3

Quote:
Originally Posted by Cyanide
Посмотреть сообщение
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
Reply
#4

Quote:
Originally Posted by deqn_0000
Посмотреть сообщение
Can you give me more info about "PAWN tag" what is this and how to use it : / I'm newbie soz
You have to put your code into these tags. (Remove the spaces between the brackets and the word pawn) [ pawn ] [ /pawn ]. Your code will be highlighted in PAWN once you do that. Here's your code in the PAWN tag:

pawn Код:
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);
            }
       }
Reply
#5

Umm thanks. Now can you say me how to fix the errors please ?
Reply
#6

1.you have not put " ; " somewhere

2.you have put more or less things in a certain thing
ex;

SendClientMessage(playerid, color, message);

you have put only the playerid and message
or you have put the playerid, message , color and another color and another message.

i will not fix the script for you,, this is for your information on how you can fix it
Reply
#7

if i put "; " for ex here :
pawn Код:
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
}
I'll got +1 error on this "};" i already tried that.Please told me how to fix it. It's my first script . .
Reply
#8

Your AddStaticVehicleEx is missing one parameter(facing angle....) check here on the usage https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply
#9

ok i fixed that.Remains others :S Guys please help me I really wanna turn the server ON Do you will help me?
Reply
#10

pawn Код:
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
};
You need to end the statement by using a semi-colon, and when you're closing a set array you cannot leave a comma. Example:

pawn Код:
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}
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)