SA-MP Forums Archive
4 Errors | RP Gamemode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 4 Errors | RP Gamemode (/showthread.php?tid=102031)



4 Errors | RP Gamemode - Assassinx - 13.10.2009

*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]--];



Re: 4 Errors | RP Gamemode - Mike Garber - 13.10.2009

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


Re: 4 Errors | RP Gamemode - shady91 - 13.10.2009

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


Re: 4 Errors | RP Gamemode - Assassinx - 13.10.2009

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


Re: 4 Errors | RP Gamemode - shady91 - 13.10.2009

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


Re: 4 Errors | RP Gamemode - Assassinx - 13.10.2009

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);



Re: 4 Errors | RP Gamemode - Correlli - 13.10.2009

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



Re: 4 Errors | RP Gamemode - Assassinx - 13.10.2009

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


Re: 4 Errors | RP Gamemode - Extremo - 13.10.2009

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.


Re: 4 Errors | RP Gamemode - Correlli - 13.10.2009

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.