4 Errors | RP Gamemode
#1

*sigh*

Help please...

Код:
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : error 017: undefined symbol "SBizzInfo"
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : warning 215: expression has no effect
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : error 001: expected token: ";", but found "]"
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : error 029: invalid expression, assumed zero
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : fatal error 107: too many error messages on one line

Compilation aborted. Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
SBizzInfo[0][sbProducts]--];
Reply
#2

I don't think the last ] should be there?
Reply
#3

im sure if im right SBiz is from the GF post there if you want me help.
Reply
#4

Its not a godfather edit. Its Carlitos Edit or something. Lol. not mine.
Em yeah if you could help Shady..
What you need?
Reply
#5

Quote:
Originally Posted by Assassinx
Its not a godfather edit. Its Carlitos Edit or something. Lol. not mine.
Em yeah if you could help Shady..
What you need?
post the lines were the errors is please
Reply
#6

pawn Код:
//              SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
//              SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
//              ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
                SBizzInfo[0][sbProducts]--];
                HireCar[playerid] = GetPlayerVehicleID(playerid);
                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                format(string, sizeof(string), "~w~Don't forget to ~b~/unrentbike~n~~g~/lock ~w~to lock your bike",hirefee);
                TogglePlayerControllable(playerid, 1);
                gEngine[GetPlayerVehicleID(playerid)] = 1;
                GameTextForPlayer(playerid, string, 5000, 3);
Reply
#7

Try and change:
pawn Код:
SBizzInfo[0][sbProducts]--];
to this:
pawn Код:
SBizzInfo[0][sbProducts--];
Reply
#8

Nup. Still got the errors. Id say it has something to do with SBizzInfo.. just i dont know what. :S
Reply
#9

Don Correli wasn't bad at touching the problem. He wasn't wrong by pointing out that solution, but I suppose he did not notice this:

Код:
: error 017: undefined symbol "SBizzInfo"
Did you declare SBizzInfo? Like "create" it?

e.g:

pawn Код:
enum Blah
{
  blahblah,
  blahblaha,
  // ...
};
new SBizzInfo[50][Blah];
// This is just a EXAMPLE.
If you didn't, then most of the other errors are self-explained.
Reply
#10

Quote:
Originally Posted by [NT
Extremo ]
Don Correli wasn't bad at touching the problem. He wasn't wrong by pointing out that solution, but I suppose he did not notice this:
Код:
: error 017: undefined symbol "SBizzInfo"
I sure did, but i guess you didn't saw this:
Quote:
Originally Posted by Assassinx
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : error 017: undefined symbol "SBizzInfo"
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : warning 215: expression has no effect
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : error 001: expected token: ";", but found "]"
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : error 029: invalid expression, assumed zero
C:\Users\Mitch\Desktop\Server\SWR.pwn(2775) : fatal error 107: too many error messages on one line
SBizzInfo is defined, but there is one ] too many and that's why compiler is confused.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)