[Help] While Compiler
#1

Error :
Код:
C:\Users\PC\Desktop\NPRPR\EGRP\New Folder\SERVER\filterscripts\kem.pwn(82) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

1 Error.
Code :
Код:
#include <a_samp>
#include <dcmd>
#include <streamer>
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GREEN   "{6EF83C}"
#define COLOR_SILVER 0xC0C0C0FF
#define color_green                       "{6EF83C}"
#define color_white                       "{FFFFFF}"
new iceJob[256];
new info;
public OnPlayerConnect(playerid)
{
   //==========------- Inghetata------=====================
   RemoveBuildingForPlayer(playerid, 5975, 1014.0234, -1361.4609, 20.3516, 0.25);
   RemoveBuildingForPlayer(playerid, 5732, 1014.0234, -1361.4609, 20.3516, 0.25);
   RemoveBuildingForPlayer(playerid, 1438, 1015.5313, -1337.1719, 12.5547, 0.25);
   RemoveBuildingForPlayer(playerid, 1297, 1019.4219, -1332.0000, 15.6406, 0.25);
   RemoveBuildingForPlayer(playerid, 5764, 1065.1406, -1270.5781, 25.7109, 0.25);
   return 1;
}
public OnFilterScriptInit()
{
   info = CreatePickup(1239,1,1039.1091, -1335.8146,14.0239,-1);
   AddStaticVehicleEx(423, 1009.2220, -1347.4849, 13.1439, 0.0000, 0, 0, 100);
   AddStaticVehicleEx(423, 1004.5997, -1347.3588, 13.2469, 0.0000, 1, 1, 100);
   AddStaticVehicleEx(423, 999.9300, -1347.4377, 13.2449, 0.0000, 3, 3, 100);
   AddStaticVehicleEx(423, 995.0709, -1347.3286, 13.2449, 0.0000, 256, 252, 100);
   AddStaticVehicleEx(423, 1014.5811, -1347.7090, 13.1439, 0.0000, 7, 6, 100);
   new reclama222 = CreateObject(4735, 1037.31335, -1332.12292, 20.42395,   0.00000, 0.00000, 267.17804);
   SetObjectMaterialText(reclama222, "Ice Cream", 0, OBJECT_MATERIAL_SIZE_256x128, "Ice Cream", 35, 1, -16730675, 1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
   Create3DTextLabel(""color_green"Thong Tin Cong Viec \n "color_white"Ice Cream ", COLOR_RED ,1039.1091,-1335.8146,14.0239, 100.0,0);//
   new reclama221 = CreateObject(4735, 1047.98206, -1343.35364, 20.42395,   0.00000, 0.00000, 181.15669);
   SetObjectMaterialText(reclama221, "Ice Cream", 0, OBJECT_MATERIAL_SIZE_256x128, "Ice Cream", 35, 1, -16730675, 1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
//____________________________________Inghetata________________________________________
					//
   CreateDynamicObject(16601, 1037.61694, -1340.59644, 12.20182,   0.00000, 0.00000, 358.34177);
   CreateDynamicObject(17001, 1010.86041, -1373.97827, 12.03120,   0.00000, 0.00000, 179.80490);
   CreateObject(17001, 1010.26849, -1350.18286, 12.02880,   0.00000, 0.00000, 179.80490);
   CreateDynamicObject(16601, 1045.76477, -1336.27942, 12.20182,   0.00000, 0.00000, 358.34177);
   CreateDynamicObject(16601, 1039.04211, -1346.41199, 12.20182,   0.00000, 0.00000, 358.34177);
   CreateDynamicObject(1884, 1039.52258, -1338.28064, 12.42110,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(1890, 1036.59436, -1338.30078, 12.42108,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(1884, 1033.00977, -1334.21594, 12.31807,   0.00000, 0.00000, 270.09579);
   CreateDynamicObject(1984, 1036.83826, -1336.09302, 12.52935,   0.00000, 0.00000, 0.52526);
   CreateDynamicObject(1991, 1034.25635, -1337.44470, 12.31810,   0.00000, 0.00000, 128.83185);
   CreateDynamicObject(1996, 1033.65088, -1336.66187, 12.31810,   0.00000, 0.00000, 128.83180);
   CreateDynamicObject(19377, 1035.52051, -1337.81824, 17.66810,   0.00000, -91.00000, 0.00000);
   CreateDynamicObject(19377, 1042.31885, -1337.80688, 17.78810,   0.00000, -91.00000, 0.00000);
   CreateDynamicObject(1884, 1043.50391, -1334.44897, 12.41604,   0.00000, 0.00000, 270.09579);
   CreateDynamicObject(1991, 1042.53345, -1336.73059, 12.31810,   0.00000, 0.00000, 229.77745);
   CreateDynamicObject(1996, 1041.89355, -1337.44897, 12.31810,   0.00000, 0.00000, 226.88670);
   CreateDynamicObject(19313, 1026.55542, -1343.72827, 13.45296,   0.00000, 0.00000, 266.23898);
   CreateDynamicObject(19313, 1019.13336, -1350.79553, 13.54811,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(19313, 1005.16931, -1350.71240, 13.54811,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(19313, 998.19983, -1350.62817, 13.54811,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(19313, 991.67419, -1343.71399, 13.45296,   0.00000, 0.00000, 266.23898);
   CreateDynamicObject(19304, 1012.03143, -1346.64600, 12.74698,   0.00000, 0.00000, 269.87323);
   CreateDynamicObject(19304, 1006.75574, -1346.40747, 12.74698,   0.00000, 0.00000, 269.87323);
   CreateDynamicObject(19304, 1002.02728, -1346.66101, 12.74698,   0.00000, 0.00000, 269.87323);
   CreateDynamicObject(19304, 997.33362, -1346.91858, 12.74698,   0.00000, 0.00000, 269.87323);
   CreateDynamicObject(617, 1016.36157, -1336.89636, 12.11400,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(617, 990.66046, -1335.76831, 12.11400,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(617, 1027.85547, -1333.56946, 12.11400,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 991.92651, -1335.54919, 12.54081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 989.81409, -1335.28210, 12.54081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 990.98676, -1333.75989, 12.54081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1015.38953, -1338.37061, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1017.00262, -1340.00562, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1017.68671, -1335.99890, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1015.54352, -1335.41431, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1027.30896, -1336.17444, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1026.45520, -1334.28125, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(870, 1029.25940, -1334.25928, 12.84081,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(19313, 1018.52637, -1344.06982, 13.45296,   0.00000, 0.00000, 269.24057);
   CreateDynamicObject(617, 1046.30420, -1353.87158, 12.11400,   0.00000, 0.00000, 0.00000);
   CreateDynamicObject(617, 1046.09143, -1367.68030, 12.11400,   0.00000, 0.00000, 0.00000);
   return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/ice", cmdtext, true, 10) == 0)
	{
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 423)
		{
            iceJob[playerid] = 1;
			new name[MAX_PLAYER_NAME], string[90];
			GetPlayerName(playerid, name, sizeof(name));
			format(string, sizeof(string), "* {6EF83C}%s {FFAF00}Sale {00C0FF}Ice Cream.", name );
			SendClientMessageToAll(COLOR_YELLOW, string);
			SetPlayerCheckpoint(playerid,1037.7463,-1333.4785,13.5476,3);
			SendClientMessage(playerid,COLOR_SILVER,"* Den checkpoint tren map!");
			return 1;
		}
        SendClientMessage(playerid, COLOR_RED,"Chi co o tren xe moi co the bat dau cong viec!");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 423)
    {
		SendClientMessage(playerid, COLOR_RED, "* Dung /ice ");
    }
    return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 423)
	 {
        new Money = 50000;
        if(iceJob[playerid] == 1)
		{
		iceJob[playerid] = 2;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,924.1577,-1352.3125,13.0807,5);
		SendClientMessage(playerid,COLOR_DARKGOLD,"* Toi nhung diem nay va phan phoi kem!");
		}
        else if(iceJob[playerid] == 2)
		{
		iceJob[playerid] = 3;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,800.8083,-1630.0208,13.0871,5);
		SendClientMessage(playerid,COLOR_DARKGOLD,"* Toi nhung diem nay va phan phoi kem!");
		}
        else if(iceJob[playerid] == 3)
		{
		iceJob[playerid] = 4;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,762.2706,-1698.1240,4.6109,5);
		SendClientMessage(playerid,COLOR_DARKGOLD,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 4)
		{
		iceJob[playerid] = 5;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,481.5381,-1536.3490,19.1879,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 5)
		{
		iceJob[playerid] = 6;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,500.3613,-1358.4753,15.9228,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 6)
		{
		iceJob[playerid] = 7;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,595.4247,-1243.1143,17.7964,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 7)
		{
		iceJob[playerid] = 8;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,961.5549,-935.3046,41.3372,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 8)
		{
		iceJob[playerid] = 9;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1213.6426,-905.6453,42.6281,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 9)
		{
		iceJob[playerid] = 10;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1221.9581,-1133.4503,23.6306,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 10)
		{
		iceJob[playerid] = 11;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1123.6742,-1273.4064,13.2512,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 11)
		{
		iceJob[playerid] = 12;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1335.4629,-1307.6538,13.2514,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 12)
		{
		iceJob[playerid] = 13;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1219.1122,-1666.0415,11.5000,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 13)
		{
		iceJob[playerid] = 14;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1577.1437,-1827.3506,13.1691,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 14)
		{
		iceJob[playerid] = 15;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1720.3235,-1738.9712,13.2513,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 15)
		{
		iceJob[playerid] = 16;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1844.6100,-1871.4823,13.0928,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 16)
		{
		iceJob[playerid] = 17;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2049.7075,-1905.6732,13.2500,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 17)
		{
		iceJob[playerid] = 18;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2103.2988,-1808.2596,13.2590,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 18)
		{
		iceJob[playerid] = 19;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2291.0000,-1724.8650,13.2514,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 19)
		{
		iceJob[playerid] = 20;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2495.9231,-1756.9600,13.1731,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 20)
		{
		iceJob[playerid] = 21;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2653.4622,-1389.3918,30.1465,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 21)
		{
		iceJob[playerid] = 22;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2529.9702,-1249.6359,37.0469,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 22)
		{
		iceJob[playerid] = 23;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2350.8518,-1167.5599,27.4334,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 23)
		{
		iceJob[playerid] = 24;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,2141.3738,-1191.5781,23.6965,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 24)
		{
		iceJob[playerid] = 25;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1934.5868,-1119.3667,26.1973,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 25)
		{
		iceJob[playerid] = 26;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1515.0916,-1203.4792,23.2991,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 26)
		{
		iceJob[playerid] = 27;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1193.7550,-1021.0020,32.2514,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 27)
		{
		iceJob[playerid] = 28;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,928.9496,-1074.1521,23.9955,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 28)
		{
		iceJob[playerid] = 29;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~VAN CHUYEN...", 2000, 5);
		SetPlayerCheckpoint(playerid,1022.4178,-1346.9199,13.7266,5);
		SendClientMessage(playerid,COLOR_YELLOW,"* Toi nhung diem nay va phan phoi kem!");
		}
		else if(iceJob[playerid] == 29)
		{
		iceJob[playerid] = 0;
		SetTimerEx("Download", 1000, 0, "i", playerid);
		GameTextForPlayer(playerid, "~g~HOAN THANH...", 2000, 5);
		SetPlayerCheckpoint(playerid,1022.4221,-1344.3301,13.3835,5);
        GivePlayerMoney(playerid, Money);
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
		RemovePlayerFromVehicle(playerid);
		DisablePlayerCheckpoint(playerid);
		SendClientMessage(playerid,COLOR_DARKGOLD,"*Ban nhan duoc  {6EF83C}50000 $.");
        }
	 }
	 return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == info)
	{
    GameTextForPlayer(playerid, "~g~PHAN PHOI ~r~KEM, ~w~DUNG LENH NAY TRONG XE ~r~/ice~w~,PHAN PHOI KEM VA NHAN DUOC ~g~50k", 3000, 3);
	}
	return 1;
}
Please help me
Reply
#2

You are using dmcd, try it comment out OnPlayerCommandText and create a command with dcmd. It should be fixed after that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)