Help please
#1

I found these errors:

Код:
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1251) : error 017: undefined symbol "cVeh"
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1251) : warning 215: expression has no effect
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1251) : error 001: expected token: ";", but found "]"
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1251) : error 029: invalid expression, assumed zero
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1251) : fatal error 107: too many error messages on one line
from this thing:

Код:
public OnPlayerConnect(playerid)
{
	cVeh[playerid]; = INVALID_VEHICLE_ID;
	return 1;
}
Reply
#2

Quote:
Originally Posted by S_ILYa™
Посмотреть сообщение
try with this and add to top
pawn Код:
#include <a_samp>
I already have that at the top
Reply
#3

Quote:
Originally Posted by S_ILYa™
Посмотреть сообщение
then have you defined the " cVeh " ?
No, I haven't

What I was trying to do is put a carmenu filterscript into my gamemode so I dont have to put it on my server.cfg because my filterscript wont load.. im using Garsino's car menu filterscript
Reply
#4

You have an out-of-place semi-colon:

pawn Код:
cVeh[playerid]; = INVALID_VEHICLE_ID;
->
pawn Код:
cVeh[playerid] = INVALID_VEHICLE_ID;
Reply
#5

Quote:
Originally Posted by MP2
Посмотреть сообщение
You have an out-of-place semi-colon:

pawn Код:
cVeh[playerid]; = INVALID_VEHICLE_ID;
->
pawn Код:
cVeh[playerid] = INVALID_VEHICLE_ID;
I still got the same errors :

Код:
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1246) : error 017: undefined symbol "cVeh"
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1246) : warning 215: expression has no effect
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1246) : error 001: expected token: ";", but found "]"
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1246) : error 029: invalid expression, assumed zero
C:\Users\Jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1246) : fatal error 107: too many error messages on one line
Reply
#6

So cVeh is not defined? You just said that above:

Quote:

posted by : S_ILYa™:
then have you defined the " cVeh " ?

Quote:

posted by NeymarJr:
No, I haven't...

Correct me if I understood wrong what you said.
Reply
#7

Quote:
Originally Posted by zombieking
Посмотреть сообщение
So cVeh is not defined? You just said that above:





Correct me if I understood wrong what you said.
Yes, I said cVeh is not defined, because I tried to copy the script from a filterscript to my game mode so I don't have to add more stuff in server.cfg ... but in that filterscript I couldn't find a line to define "cVeh" its from [03]Garsino's Vehicle Dialog Menu.
Reply
#8

Quote:
Originally Posted by NeymarJr
Посмотреть сообщение
Yes, I said cVeh is not defined, because I tried to copy the script from a filterscript to my game mode so I don't have to add more stuff in server.cfg ... but in that filterscript I couldn't find a line to define "cVeh" its from [03]Garsino's Vehicle Dialog Menu.
Have you defined cVeh like the following in the top? :-

pawn Код:
new cVeh[ MAX_PLAYERS ];
If not then add I believe it won't return error after this.

-FalconX
Reply
#9

Quote:
Originally Posted by FalconX
Посмотреть сообщение
Have you defined cVeh like the following in the top? :-

pawn Код:
new cVeh[ MAX_PLAYERS ];
If not then add I believe it won't return error after this.

-FalconX
Where do i put that thing? Sorry i am beginner
Reply
#10

Quote:
Originally Posted by NeymarJr
Посмотреть сообщение
Where do i put that thing? Sorry i am beginner
At the top where all "new" declared variables are. just after the <a_samp> include if you don't find other declared vars.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)