5 errors after/trying to add trunk
#1

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?
Reply
#2

Show us your code.
Reply
#3

You are probably not defining a variable correctly
and...
Quote:
Originally Posted by Blantas ;P*~
Show us your code.
Reply
#4

you may need the line

Код:
new carinfo;
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
Reply
#5

In the errors its CarInfo and the new is carinfo.
Use the caps in both things then.

[Doppeyy
Reply
#6

thanks, i tend to do everything in lower case so i do miss that
Reply
#7

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

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
Reply
#9

And for
Код:
C:\Users\Andy\Desktop\samp03asvr_R4_win32\gamemodes\SRP2.pwn(5322) : error 029: invalid expression, assumed zero
you may wrote
Код:
a+5;
instead of
Код:
a=a+5;
Reply
#10

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
Код:
a+5;
instead of
Код:
a=a+5;
or
Код:
a+=5
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)