#1

I was doing a tutorial on how to make dynamic houses with housecars, and I'm all done, but have a few errors. They are all on this one line:

Код:
 	playercarid[playerid] = CreateVehicle(CarId,Carx,Cary,Carz,Carangle,color1,color2,10000);
ERRORS:

Код:
C:\Users\Tyler\Desktop\SARP\gamemode\gf.pwn(1035) : error 017: undefined symbol "playercarid"
C:\Users\Tyler\Desktop\SARP\gamemode\gf.pwn(1035) : error 001: expected token: ";", but found "]"
C:\Users\Tyler\Desktop\SARP\gamemode\gf.pwn(1035) : error 029: invalid expression, assumed zero
Reply
#2

For the first error you could try this
pawn Код:
new playercarid = GetPlayerVehicleID(playerid);
The expected token could be the line above it you're missin a ; or somthing
Reply
#3

at top of script..

pawn Код:
new playercarid[MAX_PLAYERS];
Reply
#4

When I try the first response, I get like 5 new errors and 10 warnings.

When I try the second, my pawno crashes whenever I try and compile.
Reply
#5

Quote:
Originally Posted by [SARP
Michael Williams ]
When I try the first response, I get like 5 new errors and 10 warnings.

When I try the second, my pawno crashes whenever I try and compile.
First one is because the person failed =D.
Second person did it right so there is a missing bracket in your script, try find it =].
Reply
#6

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by [SARP
Michael Williams ]
When I try the first response, I get like 5 new errors and 10 warnings.

When I try the second, my pawno crashes whenever I try and compile.
First one is because the person failed =D.
Second person did it right so there is a missing bracket in your script, try find it =].
I'm still learning everything, I caught where the playercarid was but couldn't be assed to fix it, I was to busy eating and i didn't think before i posted i just read the error and not the line of code. I guess that's what i get for not payin attantion.
Reply
#7

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by [SARP
Michael Williams ]
When I try the first response, I get like 5 new errors and 10 warnings.

When I try the second, my pawno crashes whenever I try and compile.
First one is because the person failed =D.
Second person did it right so there is a missing bracket in your script, try find it =].
Why thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)