Error -
ManGoe - 18.09.2014
Код:
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(7204) : warning 217: loose indentation
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(14492) : warning 217: loose indentation
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(17025) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
This line
Код:
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}", PlayerName(playerid); 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;
}
}
Re: Error -
shourya12 - 18.09.2014
These errors should not cause problem....
Anyways,
Код:
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}", PlayerName(playerid); 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;
}
}
Re: Error -
biker122 - 18.09.2014
You probably edited nothing, just copy pasted his code again...
Try this, ManGoe:
pawn Код:
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}", PlayerName(playerid)), SendClientMessage(playerid, COLOR_MESSAGE, string); }
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;
}
}
Re: Error -
ManGoe - 18.09.2014
EDIT: Compiled with 5 warnings lol
anyways thanks
Re: Error -
biker122 - 18.09.2014
Just show me the warnings, you'll clear it out easily
Re: Error -
ManGoe - 18.09.2014
ohhh thanks showing wait a min just
Код:
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(7207) : warning 217: loose indentation
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(14496) : warning 217: loose indentation
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(17028) : warning 217: loose indentation
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(17029) : warning 217: loose indentation
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(27655) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 7196 bytes
Code size: 2001032 bytes
Data size: 1755720 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 3780332 bytes
5 Warnings.
CreateDynamicObject(3998,1153.2009300,2595.5139200 ,-3.0000000,0.0000000,0.0000000,0.0000000); //1 st warning
CreateDynamicObject(5706, 6, -1801, 0, 0, 0, 0, .streamdistance = 10000.0);2nd warning
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}", PlayerName(playerid)), SendClientMessage(playerid, COLOR_MESSAGE, string); }
PInfo[playerid][Online] = 1;
YourOnline(playerid);3-4th warning
case 17:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");Last warning
Re: Error -
biker122 - 18.09.2014
Show how it's pasted it in your script.
If it's in a callback, show it.
Use [(/)pawn] tags.
Re: Error -
ManGoe - 18.09.2014
pawn Код:
CreateDynamicObject(3998,1153.2009300,2595.5139200 ,-3.0000000,0.0000000,0.0000000,0.0000000); //1 st warning
CreateDynamicObject(5706, 6, -1801, 0, 0, 0, 0, .streamdistance = 10000.0);2nd warning
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}", PlayerName(playerid)), SendClientMessage(playerid, COLOR_MESSAGE, string); }
PInfo[playerid][Online] = 1;
YourOnline(playerid);3-4th warning
case 17:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");Last warning
__________________