5 errors after/trying to add trunk - 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: 5 errors after/trying to add trunk (
/showthread.php?tid=119349)
5 errors after/trying to add trunk -
TheGtaLover - 07.01.2010
well, i added a few things for a trunk system, store guns in it.. but get 5 errors..
Код:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5322) : error 017: undefined symbol "CarInfo"
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5322) : error 029: invalid expression, assumed zero
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5359) : error 017: undefined symbol "CarInfo"
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5359) : error 029: invalid expression, assumed zero
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5603) : error 001: expected token: ";", but found "for"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Any help?
Re: 5 errors after/trying to add trunk -
Blantas - 07.01.2010
Show us your code.
Re: 5 errors after/trying to add trunk -
HydraX - 07.01.2010
You are probably not defining a variable correctly
and...
Quote:
Originally Posted by Blantas ;P*~
Show us your code. 
|
Re: 5 errors after/trying to add trunk -
adsy - 07.01.2010
you may need the line
this line:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemode s\SRP2.pwn(5603) : error 001: expected token: ";", but found "for"
says that you have forgotten to add a " ; " at the end of a line
Re: 5 errors after/trying to add trunk -
Doppeyy - 07.01.2010
In the errors its CarInfo and the new is carinfo.
Use the caps in both things then.
[Doppeyy
Re: 5 errors after/trying to add trunk -
adsy - 07.01.2010
thanks, i tend to do everything in lower case so i do miss that
Re: 5 errors after/trying to add trunk -
TheGtaLover - 08.01.2010
okay, added new CarInfo;
but i still get one error...
Код:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5604) : error 001: expected token: ";", but found "for"
Line:
Код:
for(new c = 0; c < sizeof(CInfo); c++)
EDIT:
Quote:
Originally Posted by adsy
you may need the line
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemode s\SRP2.pwn(5603) : error 001: expected token: ";", but found "for"
says that you have forgotten to add a " ; " at the end of a line
|
Well, look at the line, above.
EDIT2: Fixed, the line above which was: LoadTrunk(); didn't have the ;
Thanks to the ones who helped..
Re: 5 errors after/trying to add trunk -
SiJ - 08.01.2010
Quote:
Originally Posted by iLike
okay, added new CarInfo;
but i still get one error...
Код:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5604) : error 001: expected token: ";", but found "for"
Line:
Код:
for(new c = 0; c < sizeof(CInfo); c++)
|
You forgot ; at the line BEFORE this line, you posted here.. :P
Re: 5 errors after/trying to add trunk -
Programie - 08.01.2010
And for
Код:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5322) : error 029: invalid expression, assumed zero
you may wrote
instead of
Re: 5 errors after/trying to add trunk -
SiJ - 08.01.2010
Quote:
Originally Posted by Programie
And for
Код:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5322) : error 029: invalid expression, assumed zero
you may wrote
instead of
|
or