C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5232) : error 017: undefined symbol "distance" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5232) : warning 215: expression has no effect C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5232) : error 001: expected token: ";", but found ")" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5232) : error 029: invalid expression, assumed zero C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5232) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public LoadObjects() { //-------------BAYSIDE AIRPORT - HIGHFLYER ----------------- [START] CreateDynamicObject(3113,-2337.26001000,2559.60839800,23.08219000,0.00000000,285.56760819,185.86120620, .distance = 10000.0); //object(carrier_door_sfse)(1)
CreateDynamicObject(3113,-2337.26001000,2559.60839800,23.08219000,0.00000000,285.56760819,185.86120620); //object(carrier_door_sfse)(1)
C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5996) : error 075: input line too long (after substitutions) C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6069) : error 010: invalid function or declaration C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6120) : error 054: unmatched closing brace ("}") C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6375) : error 017: undefined symbol "RegisterDate" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : error 017: undefined symbol "JustRegistered" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : warning 215: expression has no effect C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : error 001: expected token: ";", but found "]" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : error 029: invalid expression, assumed zero C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : fatal error 107: too many error messages on one line
public DisplayDialogForPlayer(playerid, dialogid) { switch(dialogid) { case 1: //Civilian Default Spawn Selection (Pilot) { ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"{FFFFFF}Where would you like to {1B8AE4}spawn?", "{1B8AE4}Los Santos\n{FFFFFF}San Fierro\n{1B8AE4}Las Venturas", "Spawn", "Cancel"); } case 2: { ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{FFFFFF}Which class would you like to play as?", "{1B8AE4}Pilot\n{FFFFFF}*Coming Soon*\n", "Select", "Cancel"); } case showit2: { ShowPlayerDialog(playerid,showit2,DIALOG_STYLE_LIST,"{FFFFFF}Select an option", "{1B8AE4}Information & Statistics\n{FFFFFF}Donate\n{1B8AE4}Member List\n{FFFFFF}Fleet List\n{1B8AE4}Bank Account\n{FFFFFF}Airline Settings", "Choose", "Back"); } case 4: //Military Default Spawn Selection (Pilot) { ShowPlayerDialog(playerid,55,DIALOG_STYLE_LIST,"{FFFFFF}Where would you like to {1B8AE4}spawn?", "{1B8AE4}Area 51\n{FFFFFF}San Fierro Carrier", "Spawn", "Cancel"); } } return 1; }
public UnloadTextdraws(playerid) { TextDrawHideForPlayer(playerid, Textdraw1[playerid]); TextDrawHideForPlayer(playerid, Textdraw2[playerid]); TextDrawHideForPlayer(playerid, Textdraw3[playerid]); TextDrawHideForPlayer(playerid, Textdraw4[playerid]); TextDrawHideForPlayer(playerid, Textdraw5[playerid]); TextDrawHideForPlayer(playerid, Textdraw6[playerid]); TextDrawHideForPlayer(playerid, Textdraw7[playerid]); TextDrawHideForPlayer(playerid, Textdraw8[playerid]); TextDrawHideForPlayer(playerid, Textdraw9[playerid]); TextDrawHideForPlayer(playerid, Textdraw10[playerid]); TextDrawHideForPlayer(playerid, Textdraw11[playerid]); TextDrawHideForPlayer(playerid, Textdraw12[playerid]); TextDrawHideForPlayer(playerid, Textdraw13[playerid]); }
if(PInfo[playerid][AdminLevel] > 0) { format(string, sizeof(string), "You have authorized as a level %d administrator.", PInfo[playerid][AdminLevel]); SendClientMessage(playerid, COLOR_SECURITY, string); } if(JustRegistered[playerid] == 0) { format(string, sizeof(string), "{FFFFFF}Welcome back to the Life of Flying, {1B8AE4}%s {FFFFFF}- {1B8AE4}[Last session: %s | %s]", PlayerName(playerid), PInfo[playerid][IP], PInfo[playerid][LastLogin]); SendClientMessage(playerid, COLOR_MESSAGE, string); } UpdateScore(playerid); PInfo[playerid][Online] = 1; YourOnline(playerid); CanAdvertiseAgain[playerid] = 1; if(PInfo[playerid][Airline] > 0) { format(string,sizeof(string),"AMOTD: %s | Set by: %s", AInfo[PInfo[playerid][Airline]][aMotd], AInfo[PInfo[playerid][Airline]][aMotdSetBy]); SendClientMessage(playerid, COLOR_YELLOW, string); } new motdstring[256]; format(motdstring,sizeof(motdstring),"MOTD: %s | Set by: %s", ServerMOTD, ServerMOTDSetBy); SendClientMessage(playerid, COLOR_YELLOW, motdstring); if(PInfo[playerid][CallsignSet] == 0) { new msg[64]; format(msg,sizeof(msg),"LoF"); strmid(PInfo[playerid][Callsign], msg, 0, strlen(msg), 64); PInfo[playerid][CallsignSet] = 1; } } else { // player incorrect password. SendClientMessage(playerid, COLOR_SECURITY, "Invalid password. Please try again, or request a password reset on the forums."); DisplayDialogForPlayer(playerid, 1); mysql_free_result(); } }
if(JustRegistered[playerid] == 0) { new login[156]; format(login, sizeof(login), "{1B8AE4}%s (%d) {FFFFFF}has logged into the server.", PlayerName(playerid), playerid); for(new i = 0; i <MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PInfo[i][sConnectionMessages] == 0) { SendClientMessage(i, COLOR_YELLOW, login); } } } }
it work..
but i got... new error... Код:
C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(5996) : error 075: input line too long (after substitutions) C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6069) : error 010: invalid function or declaration C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6120) : error 054: unmatched closing brace ("}") C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6375) : error 017: undefined symbol "RegisterDate" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : error 017: undefined symbol "JustRegistered" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : warning 215: expression has no effect C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : error 001: expected token: ";", but found "]" C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : error 029: invalid expression, assumed zero C:\Users\hp\Downloads\Compressed\Server\gamemodes\LoF.pwn(6414) : fatal error 107: too many error messages on one line Код:
public DisplayDialogForPlayer(playerid, dialogid) { switch(dialogid) { case 1: //Civilian Default Spawn Selection (Pilot) { ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"{FFFFFF}Where would you like to {1B8AE4}spawn?", "{1B8AE4}Los Santos\n{FFFFFF}San Fierro\n{1B8AE4}Las Venturas", "Spawn", "Cancel"); } case 2: { ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{FFFFFF}Which class would you like to play as?", "{1B8AE4}Pilot\n{FFFFFF}*Coming Soon*\n", "Select", "Cancel"); } case showit2: { ShowPlayerDialog(playerid,showit2,DIALOG_STYLE_LIST,"{FFFFFF}Select an option", "{1B8AE4}Information & Statistics\n{FFFFFF}Donate\n{1B8AE4}Member List\n{FFFFFF}Fleet List\n{1B8AE4}Bank Account\n{FFFFFF}Airline Settings", "Choose", "Back"); } case 4: //Military Default Spawn Selection (Pilot) { ShowPlayerDialog(playerid,55,DIALOG_STYLE_LIST,"{FFFFFF}Where would you like to {1B8AE4}spawn?", "{1B8AE4}Area 51\n{FFFFFF}San Fierro Carrier", "Spawn", "Cancel"); } } return 1; } Line (6120) Код:
public UnloadTextdraws(playerid) { TextDrawHideForPlayer(playerid, Textdraw1[playerid]); TextDrawHideForPlayer(playerid, Textdraw2[playerid]); TextDrawHideForPlayer(playerid, Textdraw3[playerid]); TextDrawHideForPlayer(playerid, Textdraw4[playerid]); TextDrawHideForPlayer(playerid, Textdraw5[playerid]); TextDrawHideForPlayer(playerid, Textdraw6[playerid]); TextDrawHideForPlayer(playerid, Textdraw7[playerid]); TextDrawHideForPlayer(playerid, Textdraw8[playerid]); TextDrawHideForPlayer(playerid, Textdraw9[playerid]); TextDrawHideForPlayer(playerid, Textdraw10[playerid]); TextDrawHideForPlayer(playerid, Textdraw11[playerid]); TextDrawHideForPlayer(playerid, Textdraw12[playerid]); TextDrawHideForPlayer(playerid, Textdraw13[playerid]); } Код:
if(PInfo[playerid][AdminLevel] > 0) { format(string, sizeof(string), "You have authorized as a level %d administrator.", PInfo[playerid][AdminLevel]); SendClientMessage(playerid, COLOR_SECURITY, string); } if(JustRegistered[playerid] == 0) { format(string, sizeof(string), "{FFFFFF}Welcome back to the Life of Flying, {1B8AE4}%s {FFFFFF}- {1B8AE4}[Last session: %s | %s]", PlayerName(playerid), PInfo[playerid][IP], PInfo[playerid][LastLogin]); SendClientMessage(playerid, COLOR_MESSAGE, string); } UpdateScore(playerid); PInfo[playerid][Online] = 1; YourOnline(playerid); CanAdvertiseAgain[playerid] = 1; if(PInfo[playerid][Airline] > 0) { format(string,sizeof(string),"AMOTD: %s | Set by: %s", AInfo[PInfo[playerid][Airline]][aMotd], AInfo[PInfo[playerid][Airline]][aMotdSetBy]); SendClientMessage(playerid, COLOR_YELLOW, string); } new motdstring[256]; format(motdstring,sizeof(motdstring),"MOTD: %s | Set by: %s", ServerMOTD, ServerMOTDSetBy); SendClientMessage(playerid, COLOR_YELLOW, motdstring); if(PInfo[playerid][CallsignSet] == 0) { new msg[64]; format(msg,sizeof(msg),"LoF"); strmid(PInfo[playerid][Callsign], msg, 0, strlen(msg), 64); PInfo[playerid][CallsignSet] = 1; } } else { // player incorrect password. SendClientMessage(playerid, COLOR_SECURITY, "Invalid password. Please try again, or request a password reset on the forums."); DisplayDialogForPlayer(playerid, 1); mysql_free_result(); } } Код:
if(JustRegistered[playerid] == 0) { new login[156]; format(login, sizeof(login), "{1B8AE4}%s (%d) {FFFFFF}has logged into the server.", PlayerName(playerid), playerid); for(new i = 0; i <MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PInfo[i][sConnectionMessages] == 0) { SendClientMessage(i, COLOR_YELLOW, login); } } } } |