Error while compiling Dont solve come help
#1

error while compiling
//------------------------------------------------------------------[ Includes ]
#include <a_samp>
#include <dini>
#pragma tabsize 0
new playersconnected=0;
//-------------------------------------------------------------[ Server Limit ]
#define MaxPlayers GetMaxPlayers()
#define MaxVehicles MAX_VEHICLES
#define MaxObjects MAX_OBJECTS
//--------------------------------------------------------------------[ Defines ]
#define Black "{000000}"
#define White "{FFFFFF}"
#define Grey "{BFBFBF}"
#define Red "{FF0000}"
#define Orange "{FFA500}"
#define Yellow "{FFFF00}"
#define Green "{008000}"
#define Blue "{0000FF}"
#define Purple "{800080}"
#define Teal "{008080}"
#define DIALOG_REGISTER1 0
#define DIALOG_REGISTER2 1
#define DIALOG_REGISTER3 2
#define DIALOG_REGISTER4 3
#define DIALOG_LOGIN1 4
#define DIALOG_NOPW1 5
#define DIALOG_NOPW2 6
#define DIALOG_WRONGPW 7

enum Info
{
sex, //0= male 1=female
age, // age :3
logged, // If is player connected
}


}
//--------------------------------------------------------------[ Milliseconds ]
#define Year 31536000000 // Dan x 365
#define Month 2592000000 // Dan x 30
#define Week 604800000 // Dan x 7
#define Day 86400000 // Sat x 24
#define Hour 3600000 // Minut x 60
#define Minute 60000 // Sekund x 60
#define Second 1000 // Milisekund x 1000
//-----------------------------------------------------------------[ Variables ]
//--------------------------------------------------------------------[ Unused ]
main() {}
//--------------------------------------------------------------------[ Timers ]
//----------------------------------------------------------[ Custom Functions ]
//---------------------------------------------------------[ Default Callbacks ]
public OnGameModeInit() {

AddStaticVehicle(416,1179.6121,-1337.9841,13.9299,273.0803,1,3); // ambulance
AddStaticVehicle(416,1177.6957,-1338.1082,14.0351,273.5856,1,3);// ambulance
AddStaticVehicle(416,1097.4137,-1328.3937,13.4502,2.0236,1,3); //ambulance
AddStaticVehicle(416,1110.2572,-1328.2708,13.4572,357.4251,1,3); //ambulance
AddStaticVehicle(416,1123.0111,-1327.1680,13.5545,0.8077,1,3); //ambulance
AddStaticVehicle(416,1123.0322,-1329.0438,13.3955,0.7097,1,3); //ambulance
AddPlayerClass(291,1744.5500,-1861.4077,13.5776,350.6742,0,0,0,0,0,0); // El Corona Spawn
AddPlayerClass(280,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // Police Officer spawn
AddPlayerClass(281,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 2
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 3
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 4
AddPlayerClass(283,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 5
AddPlayerClass(288,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD lider
AddPlayerClass(177,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari spawn
AddPlayerClass(70,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari Lider
AddPlayerClass(276,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 2
AddPlayerClass(275,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 3
error 054 unmatched closing brace ("}")
Reply
#2

Quote:
Originally Posted by Dejan12345
Посмотреть сообщение
error while compiling
//------------------------------------------------------------------[ Includes ]
#include <a_samp>
#include <dini>
#pragma tabsize 0
new playersconnected=0;
//-------------------------------------------------------------[ Server Limit ]
#define MaxPlayers GetMaxPlayers()
#define MaxVehicles MAX_VEHICLES
#define MaxObjects MAX_OBJECTS
//--------------------------------------------------------------------[ Defines ]
#define Black "{000000}"
#define White "{FFFFFF}"
#define Grey "{BFBFBF}"
#define Red "{FF0000}"
#define Orange "{FFA500}"
#define Yellow "{FFFF00}"
#define Green "{008000}"
#define Blue "{0000FF}"
#define Purple "{800080}"
#define Teal "{008080}"
#define DIALOG_REGISTER1 0
#define DIALOG_REGISTER2 1
#define DIALOG_REGISTER3 2
#define DIALOG_REGISTER4 3
#define DIALOG_LOGIN1 4
#define DIALOG_NOPW1 5
#define DIALOG_NOPW2 6
#define DIALOG_WRONGPW 7

enum Info
{
sex, //0= male 1=female
age, // age :3
logged, // If is player connected
}

//--------------------------------------------------------------[ Milliseconds ]
#define Year 31536000000 // Dan x 365
#define Month 2592000000 // Dan x 30
#define Week 604800000 // Dan x 7
#define Day 86400000 // Sat x 24
#define Hour 3600000 // Minut x 60
#define Minute 60000 // Sekund x 60
#define Second 1000 // Milisekund x 1000
//-----------------------------------------------------------------[ Variables ]
//--------------------------------------------------------------------[ Unused ]
main() {}
//--------------------------------------------------------------------[ Timers ]
//----------------------------------------------------------[ Custom Functions ]
//---------------------------------------------------------[ Default Callbacks ]
public OnGameModeInit() {

AddStaticVehicle(416,1179.6121,-1337.9841,13.9299,273.0803,1,3); // ambulance
AddStaticVehicle(416,1177.6957,-1338.1082,14.0351,273.5856,1,3);// ambulance
AddStaticVehicle(416,1097.4137,-1328.3937,13.4502,2.0236,1,3); //ambulance
AddStaticVehicle(416,1110.2572,-1328.2708,13.4572,357.4251,1,3); //ambulance
AddStaticVehicle(416,1123.0111,-1327.1680,13.5545,0.8077,1,3); //ambulance
AddStaticVehicle(416,1123.0322,-1329.0438,13.3955,0.7097,1,3); //ambulance
AddPlayerClass(291,1744.5500,-1861.4077,13.5776,350.6742,0,0,0,0,0,0); // El Corona Spawn
AddPlayerClass(280,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // Police Officer spawn
AddPlayerClass(281,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 2
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 3
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 4
AddPlayerClass(283,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 5
AddPlayerClass(288,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD lider
AddPlayerClass(177,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari spawn
AddPlayerClass(70,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari Lider
AddPlayerClass(276,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 2
AddPlayerClass(275,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 3
error 054 unmatched closing brace ("}")
THIS

pawn Код:
//------------------------------------------------------------------[ Includes ]
#include <a_samp>
#include <dini>
#pragma tabsize 0
new playersconnected=0;
//-------------------------------------------------------------[ Server Limit ]
#define MaxPlayers  GetMaxPlayers()
#define MaxVehicles MAX_VEHICLES
#define MaxObjects  MAX_OBJECTS
//--------------------------------------------------------------------[ Defines ]
#define Black   "{000000}"
#define White   "{FFFFFF}"
#define Grey    "{BFBFBF}"
#define Red     "{FF0000}"
#define Orange  "{FFA500}"
#define Yellow  "{FFFF00}"
#define Green   "{008000}"
#define Blue    "{0000FF}"
#define Purple  "{800080}"
#define Teal    "{008080}"
#define DIALOG_REGISTER1 0
#define DIALOG_REGISTER2 1
#define DIALOG_REGISTER3 2
#define DIALOG_REGISTER4 3
#define DIALOG_LOGIN1 4
#define DIALOG_NOPW1 5
#define DIALOG_NOPW2 6
#define DIALOG_WRONGPW 7

enum Info
{
   sex, //0= male 1=female
   age, // age :3
   logged, // If is player connected
}


}
//--------------------------------------------------------------[ Milliseconds ]
#define Year    31536000000 // Dan x 365
#define Month   2592000000  // Dan x 30
#define Week    604800000   // Dan x 7
#define Day     86400000    // Sat x 24
#define Hour    3600000     // Minut x 60
#define Minute  60000       // Sekund x 60
#define Second  1000        // Milisekund x 1000
//-----------------------------------------------------------------[ Variables ]
//--------------------------------------------------------------------[ Unused ]
main() {}
//--------------------------------------------------------------------[ Timers ]
//----------------------------------------------------------[ Custom Functions ]
//---------------------------------------------------------[ Default Callbacks ]
public OnGameModeInit() {

AddStaticVehicle(416,1179.6121,-1337.9841,13.9299,273.0803,1,3); // ambulance
AddStaticVehicle(416,1177.6957,-1338.1082,14.0351,273.5856,1,3);// ambulance
AddStaticVehicle(416,1097.4137,-1328.3937,13.4502,2.0236,1,3); //ambulance
AddStaticVehicle(416,1110.2572,-1328.2708,13.4572,357.4251,1,3); //ambulance
AddStaticVehicle(416,1123.0111,-1327.1680,13.5545,0.8077,1,3); //ambulance
AddStaticVehicle(416,1123.0322,-1329.0438,13.3955,0.7097,1,3); //ambulance
AddPlayerClass(291,1744.5500,-1861.4077,13.5776,350.6742,0,0,0,0,0,0); // El Corona Spawn
AddPlayerClass(280,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // Police Officer spawn
AddPlayerClass(281,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 2
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 3
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 4
AddPlayerClass(283,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 5
AddPlayerClass(288,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD lider
AddPlayerClass(177,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari spawn
AddPlayerClass(70,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari Lider
AddPlayerClass(276,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 2
AddPlayerClass(275,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 3  
return 1;
}
Reply
#3

Код:
enum Info
{
sex, //0= male 1=female
age, // age :3
logged, // If is player connected
}
Should be
Код:
enum Info
{
sex, //0= male 1=female
age, // age :3
logged // remove the last ,
};
Also remove the random closing bracket above your Milliseconds comment.
Reply
#4

it now 2 errors invalid fuction or declaration
Reply
#5

pawn Код:
//------------------------------------------------------------------[ Includes ]
#include <a_samp>
#include <dini>
#pragma tabsize 0
new playersconnected=0;
//-------------------------------------------------------------[ Server Limit ]
#define MaxPlayers  GetMaxPlayers()
#define MaxVehicles MAX_VEHICLES
#define MaxObjects  MAX_OBJECTS
//--------------------------------------------------------------------[ Defines ]
#define Black   "{000000}"
#define White   "{FFFFFF}"
#define Grey    "{BFBFBF}"
#define Red     "{FF0000}"
#define Orange  "{FFA500}"
#define Yellow  "{FFFF00}"
#define Green   "{008000}"
#define Blue    "{0000FF}"
#define Purple  "{800080}"
#define Teal    "{008080}"
#define DIALOG_REGISTER1 0
#define DIALOG_REGISTER2 1
#define DIALOG_REGISTER3 2
#define DIALOG_REGISTER4 3
#define DIALOG_LOGIN1 4
#define DIALOG_NOPW1 5
#define DIALOG_NOPW2 6
#define DIALOG_WRONGPW 7

enum Info
{
   sex, //0= male 1=female
   age, // age :3
   logged, // If is player connected
}


//--------------------------------------------------------------[ Milliseconds ]
#define Year    31536000000 // Dan x 365
#define Month   2592000000  // Dan x 30
#define Week    604800000   // Dan x 7
#define Day     86400000    // Sat x 24
#define Hour    3600000     // Minut x 60
#define Minute  60000       // Sekund x 60
#define Second  1000        // Milisekund x 1000
//-----------------------------------------------------------------[ Variables ]
//--------------------------------------------------------------------[ Unused ]
main() {}
//--------------------------------------------------------------------[ Timers ]
//----------------------------------------------------------[ Custom Functions ]
//---------------------------------------------------------[ Default Callbacks ]
public OnGameModeInit() {

AddStaticVehicle(416,1179.6121,-1337.9841,13.9299,273.0803,1,3); // ambulance
AddStaticVehicle(416,1177.6957,-1338.1082,14.0351,273.5856,1,3);// ambulance
AddStaticVehicle(416,1097.4137,-1328.3937,13.4502,2.0236,1,3); //ambulance
AddStaticVehicle(416,1110.2572,-1328.2708,13.4572,357.4251,1,3); //ambulance
AddStaticVehicle(416,1123.0111,-1327.1680,13.5545,0.8077,1,3); //ambulance
AddStaticVehicle(416,1123.0322,-1329.0438,13.3955,0.7097,1,3); //ambulance
AddPlayerClass(291,1744.5500,-1861.4077,13.5776,350.6742,0,0,0,0,0,0); // El Corona Spawn
AddPlayerClass(280,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // Police Officer spawn
AddPlayerClass(281,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 2
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 3
AddPlayerClass(282,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 4
AddPlayerClass(283,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD rank 5
AddPlayerClass(288,1553.0703,-1675.1847,16.1953,85.4449,0,0,0,0,0,0); // LSPD lider
AddPlayerClass(177,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari spawn
AddPlayerClass(70,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari Lider
AddPlayerClass(276,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 2
AddPlayerClass(275,1175.1886,-1325.1494,14.3906,268.4335,0,0,0,0,0,0); // Bolnicari rank 3  
return 1;
}
Reply
#6

now error invalid fuction
Reply
#7

Quote:
Originally Posted by Dejan12345
Посмотреть сообщение
now error invalid fuction
Give me the error code and the line

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 92 seconds.

In your enm try this
pawn Код:
enum Info
{
   sex, //0= male 1=female
   age, // age :3
   logged // If is player connected
}
Reply
#8

//------------------------------------------------------------------[ Includes ]
#include <a_samp>
#include <dini>
#pragma tabsize 0
new playersconnected=0;
//-------------------------------------------------------------[ Server Limit ]
#define MaxPlayers GetMaxPlayers()
#define MaxVehicles MAX_VEHICLES
#define MaxObjects MAX_OBJECTS
//--------------------------------------------------------------------[ Defines ]
#define Black "{000000}"
#define White "{FFFFFF}"
#define Grey "{BFBFBF}"
#define Red "{FF0000}"
#define Orange "{FFA500}"
#define Yellow "{FFFF00}"
#define Green "{008000}"
#define Blue "{0000FF}"
#define Purple "{800080}"
#define Teal "{008080}"
#define DIALOG_REGISTER1 0
#define DIALOG_REGISTER2 1
#define DIALOG_REGISTER3 2
#define DIALOG_REGISTER4 3
#define DIALOG_LOGIN1 4
#define DIALOG_NOPW1 5
#define DIALOG_NOPW2 6
#define DIALOG_WRONGPW 7

enum Info
{
sex, //0= male 1=female
age, // age :3
logged // If is player connected
}

//--------------------------------------------------------------[ Milliseconds ]
#define Year 31536000000 // Dan x 365
#define Month 2592000000 // Dan x 30
#define Week 604800000 // Dan x 7
#define Day 86400000 // Sat x 24
#define Hour 3600000 // Minut x 60
#define Minute 60000 // Sekund x 60
#define Second 1000 // Milisekund x 1000
dont know really where is
Reply
#9

On what line is that error wtf
Reply
#10

Quote:
Originally Posted by Flake.
Посмотреть сообщение
Код:
enum Info
{
sex, //0= male 1=female
age, // age :3
logged, // If is player connected
}
Should be
Код:
enum Info
{
sex, //0= male 1=female
age, // age :3
logged // remove the last ,
};
";" and "," isn't relevant for enum.

This compile normally
Код:
enum
{
	test,
	test2,
	test3
}

enum
{
	test,
	test2,
	test3,
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)