18.06.2012, 22:02
please someone post how to fix all errors in compiling i search on ****** but not much error fix found pls i need FIXES to all errors
C:\Users\Home\Desktop\SAMP Server\gamemodes\MyServer.pwn(22) : error 010: invalid function or declaration C:\Users\Home\Desktop\SAMP Server\gamemodes\MyServer.pwn(23) : warning 215: expression has no effect C:\Users\Home\Desktop\SAMP Server\gamemodes\MyServer.pwn(23) : error 070: rational number support was not enabled C:\Users\Home\Desktop\SAMP Server\gamemodes\MyServer.pwn(23) : error 010: invalid function or declaration C:\Users\Home\Desktop\SAMP Server\gamemodes\MyServer.pwn(23 -- 25) : error 021: symbol already defined: "AddPlayerClass" C:\Users\Home\Desktop\SAMP Server\gamemodes\MyServer.pwn(23 -- 25) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
//////////////////////////////////===========================////////////////////////////// //============================== Los Santos Battlefield by Zero //=========================== /////////////////////////////// ============================ //////////////////////////// #define red 0xFF0066FF #define yellow 0xECF70CAA #define green 0x1BE049FF #define white 0xF7F7F7AA #define cyan 0x0CEDEDFF #define blue 0x1B6DE0FF #define TEAM_AMERICA 1 #define TEAM_ENGLAND 2 #define TEAM_AFGANISTAN 3 //===============================[[[[[ TEAMS ]]]] ============================================================== /America AddPlayerClass(playerid,164,1531.5238,-900.1605,61.1226,214.3728,24,100,25,100,31,400,46,1); //England AddPlayerClass(playerid,165,1531.5238,-900.1605,61.1226,214.3728,23,100,25,100,31,400,46,1); //Afganistan AddPlayerClass(playerid,133,1531.5238,-900.1605,61.1226,214.3728,22,100,25,100,30,400,46,1); //=============================[[[[[ CARS ]]]]==================================================================================== //cars AddStaticVehicle(470,-1302.859741,2488.167480,87.187194,192.361145,-1,-1); AddStaticVehicle(425,-1278.792114,2466.291015,87.850166,94.713203,-1,-1); AddStaticVehicle(470,-1288.037719,2492.299316,87.018417,190.481918,-1,-1); AddStaticVehicle(487,-1325.943725,2560.213378,88.632812,58.640964,-1,-1); AddStaticVehicle(471,-1288.195678,2504.687500,86.398040,88.496597,-1,-1); AddStaticVehicle(471,-1288.083740,2506.859863,86.471954,88.164085,-1,-1); AddStaticVehicle(471,-1287.700073,2501.885742,86.996017,94.945014,-1,-1); AddStaticVehicle(520,-1232.584350,2413.827636,121.521675,87.252456,-1,-1); AddStaticVehicle(593,-1325.535156,2459.248046,87.134887,93.371292,-1,-1); AddStaticVehicle(593,-1324.627075,2438.214599,88.705780,90.687583,-1,-1); AddStaticVehicle(543,-1273.572875,2512.906494,87.380714,88.802474,-1,-1); AddStaticVehicle(543,-1273.073852,2507.575683,87.308097,85.086135,-1,-1); AddStaticVehicle(476,277.007507,2023.936035,17.640625,272.075683,-1,-1); AddStaticVehicle(476,275.147216,1988.540649,17.640625,270.314514,-1,-1); AddStaticVehicle(476,276.717529,1954.546020,17.640625,271.623992,-1,-1); AddStaticVehicle(593,371.822540,1956.832031,17.640625,90.258514,-1,-1); AddStaticVehicle(593,375.569641,1989.158081,17.640625,85.426658,-1,-1); AddStaticVehicle(520,310.938781,1963.618041,18.730674,181.174087,-1,-1); AddStaticVehicle(425,278.640838,1927.600708,17.640625,263.058807,-1,-1); AddStaticVehicle(470,213.583328,1871.432373,13.136613,1.125014,-1,-1); AddStaticVehicle(471,194.767486,1921.789672,17.121931,182.299911,-1,-1); AddStaticVehicle(471,201.230133,1921.779541,17.640625,185.787506,-1,-1); AddStaticVehicle(471,210.643447,1921.754882,17.120664,176.920669,-1,-1); AddStaticVehicle(471,221.826843,1920.854736,17.640625,179.006713,-1,-1); AddStaticVehicle(470,197.804519,1877.226318,17.639320,0.390376,-1,-1); AddStaticVehicle(470,231.894485,1880.705200,17.631792,359.803161,-1,-1); public OnPlayerConnect(playerid) ShowPlayerDialog(playerid, RULES_DIALOG, DIALOG_STYLE_LIST,"Server Rules","/nDo NOT Insult Players/Admins/nDo NOT Spam/Flood The Chat/nDo NOT Use ANY Kind Of Hacks/Cleos/nDo NOT Attack Players That Just Spawned With Armed Vehicles/nDo NOT Spam Commands/nDo NOT Ask To Be Admin" "Accept" "Decline"); ShowPlayerDialog(playerid, RULES_DIALOG, DIALOG_STYLE_LIST,"Thank You For Agreeing To Our Rules","/n Remember To Use /Gamehelp To See How To Rank Up/n You Are Free To Ask Admins Any Question"); SendClientMessaage(playerid,yellow,"REMINDER: Remember To /registeracc to create an Account"); playersconnected=+1; { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/dmsta", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,1424.3605,932.5942,1036.4092,358.5801); AddPlayerClass(playerid,299,-1424.3605,932.5942,1036.4092,358.5801,9,1,24,200,27,99999,28,500,31,9999999); SetPlayerHealth(playerid,100); GameTextForPlayer(playerid,"~r~ You Have Entered The DeathMatch Stadium" 9999999999999 0); return 1; } return 0; } public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0; { gTeam[playerid] = TEAM_AMERICA; GameTextForPlayer(playerid, "~b~America", 5000, 5); SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700); SetPlayerFacingAngle(playerid, 4018); SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768); SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700); } case 1; public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0; { gTeam[playerid] = TEAM_ENGLAND; GameTextForPlayer(playerid, "~g~England", 5000, 5); SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700); SetPlayerFacingAngle(playerid, 4018); SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768); SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700); } case 1; public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0; { gTeam[playerid] = TEAM_AFGANISTAN; GameTextForPlayer(playerid, "~c~Afganistan", 5000, 5); SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700); SetPlayerFacingAngle(playerid, 4018); SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768); SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700); } case 1; SetPlayerToTeamColour(playerid) { if(gTeam[playerid] == TEAM_AMERICA) { SetPlayerColor(playerid,blue); } else if(gTeam[playerid] == TEAM_ENGLAND) { SetPlayerColor(playerid,green); } else if(gTeam[playerid] == TEAM_AFGANISTAN) { SetPlayerColor(playerid,cyan); } return 1; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,0.0); return 1; } return 0; } public OnPlayerDeath(playerid, killerid, reason) SendClientMessage(playerid,red,"You Have Been Killed By An Enemy You Have Lost $5000!"); GivePlayerMoney(playerid,-1000); { return 1; } public OnPlayerDisconnect(playerid, reason) { new string[64], name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); switch(reason) { case 0: format(string,sizeof string,"%s left the server. (Timed out)",name); case 1: format(string,sizeof string,"%s left the server. (Leaving)",name); case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name); } SendClientMessageToAll(0xF7F7F7AA,string); return 1; } public OnPlayerConnect(playerid); CreateObject(4708,-1237.699951,2412.100097,101.900001,0.000000,0.000000,0.000000); CreateObject(16302,-1319.099975,2510.600097,90.199996,0.000000,0.000000,0.000000); CreateObject(12956,-1278.599975,2559.500000,86.500000,0.000000,0.000000,0.000000); CreateObject(2935,-1306.000000,2575.600097,84.000000,0.000000,0.000000,0.000000); CreateObject(2935,-1309.500000,2575.100097,83.599998,0.000000,0.000000,0.000000); CreateObject(2935,-1313.099975,2575.300048,83.500000,0.000000,0.000000,0.000000); CreateObject(2935,-1302.500000,2576.600097,84.300003,0.000000,0.000000,0.000000); CreateObject(2935,-1303.300048,2576.600097,87.199996,0.000000,0.000000,0.000000); CreateObject(2935,-1306.500000,2575.800048,87.199996,0.000000,0.000000,0.000000); CreateObject(2935,-1311.000000,2575.300048,84.800003,0.000000,0.000000,0.000000); CreateObject(4726,-1279.000000,2462.100097,85.500000,0.000000,0.000000,0.000000); CreateObject(898,-1359.199951,2542.500000,88.500000,0.000000,0.000000,0.000000); CreateObject(898,-1361.000000,2531.100097,85.699996,0.000000,0.000000,0.000000); CreateObject(898,-1363.000000,2520.699951,86.599998,0.000000,0.000000,0.000000); CreateObject(16134,-1335.400024,2549.100097,82.699996,0.000000,0.000000,0.000000); CreateObject(16095,205.000000,1877.800048,16.600000,0.000000,0.000000,272.000000); CreateObject(16095,223.000000,1880.500000,15.899999,0.000000,0.000000,271.999511); CreateObject(3268,372.700012,1954.800048,16.600000,0.000000,0.000000,0.000000); CreateObject(3268,373.299987,1989.599975,16.600000,0.000000,0.000000,0.000000); CreateObject(8171,310.899993,1978.699951,17.000000,0.000000,0.000000,0.000000); { return 1; } //=====================================================[ END ]======================================================
//////////////////////////////////===========================//////////////////////////////
//============================== Los Santos Battlefield by Zero //===========================
/////////////////////////////// ============================ ////////////////////////////
#define red 0xFF0066FF
#define yellow 0xECF70CAA
#define green 0x1BE049FF
#define white 0xF7F7F7AA
#define cyan 0x0CEDEDFF
#define blue 0x1B6DE0FF
#define TEAM_AMERICA 1
#define TEAM_ENGLAND 2
#define TEAM_AFGANISTAN 3
public OnGameModeInit()
{
//===============================[[[[[ TEAMS ]]]] ==============================================================
//America
AddPlayerClass(playerid,164,1531.5238,-900.1605,61.1226,214.3728,24,100,25,100,31,400,46,1);
//England
AddPlayerClass(playerid,165,1531.5238,-900.1605,61.1226,214.3728,23,100,25,100,31,400,46,1);
//Afganistan
AddPlayerClass(playerid,133,1531.5238,-900.1605,61.1226,214.3728,22,100,25,100,30,400,46,1);
//=============================[[[[[ CARS ]]]]====================================================================================
//cars
AddStaticVehicle(470,-1302.859741,2488.167480,87.187194,192.361145,-1,-1);
AddStaticVehicle(425,-1278.792114,2466.291015,87.850166,94.713203,-1,-1);
AddStaticVehicle(470,-1288.037719,2492.299316,87.018417,190.481918,-1,-1);
AddStaticVehicle(487,-1325.943725,2560.213378,88.632812,58.640964,-1,-1);
AddStaticVehicle(471,-1288.195678,2504.687500,86.398040,88.496597,-1,-1);
AddStaticVehicle(471,-1288.083740,2506.859863,86.471954,88.164085,-1,-1);
AddStaticVehicle(471,-1287.700073,2501.885742,86.996017,94.945014,-1,-1);
AddStaticVehicle(520,-1232.584350,2413.827636,121.521675,87.252456,-1,-1);
AddStaticVehicle(593,-1325.535156,2459.248046,87.134887,93.371292,-1,-1);
AddStaticVehicle(593,-1324.627075,2438.214599,88.705780,90.687583,-1,-1);
AddStaticVehicle(543,-1273.572875,2512.906494,87.380714,88.802474,-1,-1);
AddStaticVehicle(543,-1273.073852,2507.575683,87.308097,85.086135,-1,-1);
AddStaticVehicle(476,277.007507,2023.936035,17.640625,272.075683,-1,-1);
AddStaticVehicle(476,275.147216,1988.540649,17.640625,270.314514,-1,-1);
AddStaticVehicle(476,276.717529,1954.546020,17.640625,271.623992,-1,-1);
AddStaticVehicle(593,371.822540,1956.832031,17.640625,90.258514,-1,-1);
AddStaticVehicle(593,375.569641,1989.158081,17.640625,85.426658,-1,-1);
AddStaticVehicle(520,310.938781,1963.618041,18.730674,181.174087,-1,-1);
AddStaticVehicle(425,278.640838,1927.600708,17.640625,263.058807,-1,-1);
AddStaticVehicle(470,213.583328,1871.432373,13.136613,1.125014,-1,-1);
AddStaticVehicle(471,194.767486,1921.789672,17.121931,182.299911,-1,-1);
AddStaticVehicle(471,201.230133,1921.779541,17.640625,185.787506,-1,-1);
AddStaticVehicle(471,210.643447,1921.754882,17.120664,176.920669,-1,-1);
AddStaticVehicle(471,221.826843,1920.854736,17.640625,179.006713,-1,-1);
AddStaticVehicle(470,197.804519,1877.226318,17.639320,0.390376,-1,-1);
AddStaticVehicle(470,231.894485,1880.705200,17.631792,359.803161,-1,-1);
return 1;
}
public OnPlayerConnect(playerid)
ShowPlayerDialog(playerid, RULES_DIALOG, DIALOG_STYLE_LIST,"Server Rules","/nDo NOT Insult Players/Admins/nDo NOT Spam/Flood The Chat/nDo NOT Use ANY Kind Of Hacks/Cleos/nDo NOT Attack Players That Just Spawned With Armed Vehicles/nDo NOT Spam Commands/nDo NOT Ask To Be Admin" "Accept" "Decline");
ShowPlayerDialog(playerid, RULES_DIALOG, DIALOG_STYLE_LIST,"Thank You For Agreeing To Our Rules","/n Remember To Use /Gamehelp To See How To Rank Up/n You Are Free To Ask Admins Any Question");
SendClientMessaage(playerid,yellow,"REMINDER: Remember To /registeracc to create an Account");
playersconnected=+1;
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dmsta", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1424.3605,932.5942,1036.4092,358.5801);
AddPlayerClass(playerid,299,-1424.3605,932.5942,1036.4092,358.5801,9,1,24,200,27,99999,28,500,31,9999999);
SetPlayerHealth(playerid,100);
GameTextForPlayer(playerid,"~r~ You Have Entered The DeathMatch Stadium" 9999999999999 0);
return 1;
}
return 0;
}
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0;
{
gTeam[playerid] = TEAM_AMERICA;
GameTextForPlayer(playerid, "~b~America", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1;
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0;
{
gTeam[playerid] = TEAM_ENGLAND;
GameTextForPlayer(playerid, "~g~England", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1;
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0;
{
gTeam[playerid] = TEAM_AFGANISTAN;
GameTextForPlayer(playerid, "~c~Afganistan", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1;
SetPlayerToTeamColour(playerid)
{
if(gTeam[playerid] == TEAM_AMERICA)
{
SetPlayerColor(playerid,blue);
}
else if(gTeam[playerid] == TEAM_ENGLAND)
{
SetPlayerColor(playerid,green);
}
else if(gTeam[playerid] == TEAM_AFGANISTAN)
{
SetPlayerColor(playerid,cyan);
}
return 1;
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0.0);
return 1;
}
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
SendClientMessage(playerid,red,"You Have Been Killed By An Enemy You Have Lost $5000!");
GivePlayerMoney(playerid,-1000);
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
}
SendClientMessageToAll(0xF7F7F7AA,string);
return 1;
}
public OnPlayerConnect(playerid);
CreateObject(4708,-1237.699951,2412.100097,101.900001,0.000000,0.000000,0.000000);
CreateObject(16302,-1319.099975,2510.600097,90.199996,0.000000,0.000000,0.000000);
CreateObject(12956,-1278.599975,2559.500000,86.500000,0.000000,0.000000,0.000000);
CreateObject(2935,-1306.000000,2575.600097,84.000000,0.000000,0.000000,0.000000);
CreateObject(2935,-1309.500000,2575.100097,83.599998,0.000000,0.000000,0.000000);
CreateObject(2935,-1313.099975,2575.300048,83.500000,0.000000,0.000000,0.000000);
CreateObject(2935,-1302.500000,2576.600097,84.300003,0.000000,0.000000,0.000000);
CreateObject(2935,-1303.300048,2576.600097,87.199996,0.000000,0.000000,0.000000);
CreateObject(2935,-1306.500000,2575.800048,87.199996,0.000000,0.000000,0.000000);
CreateObject(2935,-1311.000000,2575.300048,84.800003,0.000000,0.000000,0.000000);
CreateObject(4726,-1279.000000,2462.100097,85.500000,0.000000,0.000000,0.000000);
CreateObject(898,-1359.199951,2542.500000,88.500000,0.000000,0.000000,0.000000);
CreateObject(898,-1361.000000,2531.100097,85.699996,0.000000,0.000000,0.000000);
CreateObject(898,-1363.000000,2520.699951,86.599998,0.000000,0.000000,0.000000);
CreateObject(16134,-1335.400024,2549.100097,82.699996,0.000000,0.000000,0.000000);
CreateObject(16095,205.000000,1877.800048,16.600000,0.000000,0.000000,272.000000);
CreateObject(16095,223.000000,1880.500000,15.899999,0.000000,0.000000,271.999511);
CreateObject(3268,372.700012,1954.800048,16.600000,0.000000,0.000000,0.000000);
CreateObject(3268,373.299987,1989.599975,16.600000,0.000000,0.000000,0.000000);
CreateObject(8171,310.899993,1978.699951,17.000000,0.000000,0.000000,0.000000);
{
return 1;
}
//=====================================================[ END ]======================================================