28.10.2015, 23:21
Hey ALL i have 1 problem at compiling script Plz help to this following error.
Script
Код:
D:\GTA San Andreas\Game\Server\dialog.pwn(257) : error 017: undefined symbol "COLOR_LIGHTBLUE" D:\GTA San Andreas\Game\Server\dialog.pwn(258) : error 017: undefined symbol "COLOR_LIGHTBLUE" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
#include <a_samp> #include <colors> #include <zcmd> #define COLOR_SIMPSONS 0xFFD90FAA #if defined FILTERSCRIPT new Text:Time, Text:Date; forward settime(playerid); public OnFilterScriptInit() { print("\n-----------------------------------------------------"); print(" Update Version! WORLDCLOCK+DATE By Shadow !LOADED!"); print("-----------------------------------------------------/n"); Date = TextDrawCreate(547.000000,11.000000,"The Ultimate"); TextDrawFont(Date,3); TextDrawLetterSize(Date,0.399999,1.600000); TextDrawColor(Date,0x80FF0099); Time = TextDrawCreate(547.000000,28.000000,"Freeroam"); TextDrawFont(Time,3); TextDrawLetterSize(Time,0.399999,1.600000); TextDrawColor(Time,0x80FF0099); SetTimer("settime",1000,true); return 1; } public OnFilterScriptExit() { print("\n-----------------------------------------------------"); print(" Update Version! WORLDCLOCK+DATE By Shadow !UNLOADED!"); print("-----------------------------------------------------/n"); return 1; } CMD:showtime(playerid) { TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date); return 1; } CMD:hidetime(playerid) { TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date); return 1; } public settime(playerid) { new string[256],year,month,day,hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(Date, string); format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds); TextDrawSetString(Time, string); } #endif public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/misc", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{00C0FF}Colors List", "Colors", "Select", "Cancel"); return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == 10) { if (response) { if (listitem == 0) { ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFAF00}Colors List", "1\t{00C0FF}Light Blue\n2\t{0049FF}Blue\n3\t{FF00EA}Pink\n4\t{F81414}Dark Red\n5\t{6EF83C}Green\n6\t{FFAF00}Orange\n7\t{F3FF02}Yellow\n8\tBack", "Select", "Cancel"); } } } if(dialogid == 11) { if(response) { if (listitem == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your color is now Light Blue"); SetPlayerColor(playerid, COLOR_LIGHTBLUE); } if (listitem == 1) { SendClientMessage(playerid, COLOR_BLUE, "Your color is now Blue"); SetPlayerColor(playerid, COLOR_BLUE); } if (listitem == 2) { SendClientMessage(playerid, COLOR_PINK, "Your color is now Pink"); SetPlayerColor(playerid, COLOR_PINK); } if (listitem == 3) { SendClientMessage(playerid, COLOR_RED, "Your color is now Dark Red"); SetPlayerColor(playerid, COLOR_RED); } if (listitem == 4) { SendClientMessage(playerid, COLOR_GREEN, "Your color is now Green"); SetPlayerColor(playerid, COLOR_GREEN); } if (listitem == 5) { SendClientMessage(playerid, COLOR_ORANGE, "Your color is now a Orange"); SetPlayerColor(playerid, COLOR_ORANGE); } if (listitem == 6) { SendClientMessage(playerid, COLOR_YELLOW, "Your color is now Yellow"); SetPlayerColor(playerid, COLOR_YELLOW); } if (listitem == 7) { ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{00C0FF}Colors List", "Colors", "Select", "Cancel"); } } } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }