Need help! The gamemode got screwed!
#1

Код:
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]
Reply
#2

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.
Reply
#3

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;
		}
Reply
#4

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;
        }
Reply
#5

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.
Reply
#6

What do you mean?
Reply
#7

I find it funny, these people can even fix a simple unidentified symbol
Reply
#8

Thomas is not funny,i mentioned that i am a newbie scripter,and this you told is disturbing me.
Reply
#9

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.
Reply
#10

Changed the line to this:

if(CityHallRobbedRecently == 1) // DONUT

but still the same error,whats goin on?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)