Problem with Car spawner
#1

Hey everyone!

I have this car spawner that I edited (Code: http://pastebin.com/zzrT2uuB) and I can't get it to work.

Do you guys know what's wrong?

Errors:
Код:
autos.pwn(238) : error 017: undefined symbol "a"
autos.pwn(239) : error 017: undefined symbol "x"
autos.pwn(241) : error 017: undefined symbol "x"
autos.pwn(249) : error 017: undefined symbol "a"
autos.pwn(250) : error 017: undefined symbol "x"
autos.pwn(252) : error 017: undefined symbol "x"
autos.pwn(259) : error 017: undefined symbol "a"
autos.pwn(260) : error 017: undefined symbol "x"
autos.pwn(262) : error 017: undefined symbol "x"
autos.pwn(269) : error 017: undefined symbol "a"
autos.pwn(270) : error 017: undefined symbol "x"
autos.pwn(272) : error 017: undefined symbol "x"
autos.pwn(279) : error 017: undefined symbol "a"
autos.pwn(280) : error 017: undefined symbol "x"
autos.pwn(282) : error 017: undefined symbol "x"
autos.pwn(289) : error 017: undefined symbol "a"
autos.pwn(290) : error 017: undefined symbol "x"
autos.pwn(292) : error 017: undefined symbol "x"
autos.pwn(305) : error 017: undefined symbol "a"
autos.pwn(306) : error 017: undefined symbol "x"
autos.pwn(308) : error 017: undefined symbol "x"
autos.pwn(315) : error 017: undefined symbol "a"
autos.pwn(316) : error 017: undefined symbol "x"
autos.pwn(318) : error 017: undefined symbol "x"
autos.pwn(325) : error 017: undefined symbol "a"
autos.pwn(326) : error 017: undefined symbol "x"
Thanks!
Reply
#2

Already told you in a post before.
You have to remove all the
Код:
new Float:x,Float:y,Float:z,Float:a;
only of the car system script.
Reply
#3

Quote:
Originally Posted by Roel
Посмотреть сообщение
Already told you in a post before.
You have to remove all the
Код:
new Float:x,Float:y,Float:z,Float:a;
only of the car system script.
I did, right?
Reply
#4

no
you removed all of them
show me your code.
Reply
#5

You told me to remove all of them. My code is at http://pastebin.com/zzrT2uuB
Reply
#6

ok try this:

put

pawn Код:
new Float:x,Float:y,Float:z,Float:a;
after
pawn Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
In your OnPlayerSelectedMenuRow

Only once.
Reply
#7

Quote:
Originally Posted by Roel
Посмотреть сообщение
ok try this:

put

pawn Код:
new Float:x,Float:y,Float:z,Float:a;
after
pawn Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
In your OnPlayerSelectedMenuRow

Only once.
Cool! Got rid of that problem, now it's hating on line 453 (Updated code: http://pastebin.com/BGZBLb2Y)

Код:
autos.pwn(453) : error 014: invalid statement; not in switch
autos.pwn(453) : warning 215: expression has no effect
autos.pwn(453) : error 001: expected token: ";", but found ":"
autos.pwn(453) : error 029: invalid expression, assumed zero
autos.pwn(453) : fatal error 107: too many error messages on one line
Would be so great if you could solve it! Thanks in advance!
Reply
#8

Do you know how to count brackets? Check from 453 line to back to the top.
Reply
#9

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Do you know how to count brackets? Check from 453 line to back to the top.
I checked them, and I fixed it myself! . Thanks!
Reply
#10

It sort of works, but now, random vehicles around the server disappear, including ones with people in it, can i prevent this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)