Need help! The gamemode got screwed! -
geohareas - 08.12.2012
Код:
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(1741) : error 021: symbol already defined: "RobbedRecently"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(4878) : warning 204: symbol is assigned a value that is never used: "otherfile"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(11635) : warning 217: loose indentation
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(11660) : warning 217: loose indentation
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(21627) : warning 217: loose indentation
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(21760) : warning 217: loose indentation
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(23674) : warning 213: tag mismatch
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26721) : error 017: undefined symbol "CityHallRobbedRecently"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26741) : error 017: undefined symbol "RobCityHallTimer"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26745) : error 017: undefined symbol "CityHallRobbedRecently"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26745) : warning 215: expression has no effect
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(28363) : warning 219: local variable "idcar" shadows a variable at a preceding level
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81102) : warning 235: public function lacks forward declaration (symbol "RobCityHall")
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81115) : error 017: undefined symbol "RobCityHallTimer"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81130) : error 017: undefined symbol "RobCityHallTimer"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81136) : error 028: invalid subscript (not an array or too many subscripts): "RobbedRecently"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81136) : warning 215: expression has no effect
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81136) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81136) : error 029: invalid expression, assumed zero
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(81136) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Errors.
PLEASE HELP ME!
Thanks in advance!
Sincerely,
George
[PS: I am a new scripter]
Re: Need help! The gamemode got screwed! -
Threshold - 08.12.2012
Make sure you have no loose or missing braces which are { and }.
These can contribute to these kind of errors. Otherwise make sure you review whatever you've edited or added, and make sure it's proper.
Re: Need help! The gamemode got screwed! -
geohareas - 08.12.2012
Dear Benzo,
Do you know how to solve these errors?
Код:
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26722) : warning 215: expression has no effect
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26722) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26722) : error 029: invalid expression, assumed zero
C:\Documents and Settings\George\ЕрйцЬнейб есгбуЯбт\PROJECT-SFR\ROMANIANS_ROLEPLAY\RP\gamemodes\larp.pwn(26722) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
This is the script:
Код:
if(strcmp(cmd, "/robcityhall", true) == 0)
{
new success = random(2);
if(CityHallRobbedRecently = 1); //26722
{
SendClientMessage(playerid, COLOR_GREY, "* This location was robbede recently, try again later");
return 1;
}
if(PlayerInfo[playerid][pRobTime] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
return 1;
}
Re: Need help! The gamemode got screwed! -
DaRk_RaiN - 08.12.2012
pawn Код:
if(strcmp(cmd, "/robcityhall", true) == 0)
{
new success = random(2);
if(CityHallRobbedRecently == 1)
{
SendClientMessage(playerid, COLOR_GREY, "* This location was robbede recently, try again later");
return 1;
}
if(PlayerInfo[playerid][pRobTime] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
return 1;
}
Re: Need help! The gamemode got screwed! -
Threshold - 08.12.2012
pawn Код:
if(strcmp(cmd, "/robcityhall", true) == 0)
{
new success = random(2);
if(CityHallRobbedRecently = 1) //26722
{
SendClientMessage(playerid, COLOR_GREY, "* This location was robbede recently, try again later");
return 1;
}
if(PlayerInfo[playerid][pRobTime] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
return 1;
}
You cannot put a ; on the end of an 'if' statement.
Re: Need help! The gamemode got screwed! -
geohareas - 08.12.2012
What do you mean?
Re: Need help! The gamemode got screwed! -
ThomasCarter - 08.12.2012
I find it funny, these people can even fix a simple unidentified symbol
Re: Need help! The gamemode got screwed! -
geohareas - 08.12.2012
Thomas is not funny,i mentioned that i am a newbie scripter,and this you told is disturbing me.
Re: Need help! The gamemode got screwed! -
Threshold - 08.12.2012
See how you had a ; on the end, if you're using "if(somethinghere)" you can't have a ; on the same line... unless you code things on one line.
Re: Need help! The gamemode got screwed! -
geohareas - 08.12.2012
Changed the line to this:
if(CityHallRobbedRecently == 1) // DONUT
but still the same error,whats goin on?