Help please - 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)
+--- Thread: Help please (
/showthread.php?tid=349474)
Help please -
NeymarJr - 09.06.2012
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;
}
Re: Help please -
NeymarJr - 09.06.2012
Quote:
Originally Posted by S_ILYa™
try with this and add to top
|
I already have that at the top
Re: Help please -
NeymarJr - 09.06.2012
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
Re: Help please -
MP2 - 09.06.2012
You have an out-of-place semi-colon:
pawn Код:
cVeh[playerid]; = INVALID_VEHICLE_ID;
->
pawn Код:
cVeh[playerid] = INVALID_VEHICLE_ID;
Re: Help please -
NeymarJr - 09.06.2012
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
Re: Help please -
zombieking - 09.06.2012
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.
Re: Help please -
NeymarJr - 09.06.2012
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.
Re: Help please -
FalconX - 09.06.2012
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? :-
If not then add I believe it won't return error after this.
-FalconX
Re: Help please -
NeymarJr - 09.06.2012
Quote:
Originally Posted by FalconX
Have you defined cVeh like the following in the top? :-
If not then add I believe it won't return error after this.
-FalconX
|
Where do i put that thing? Sorry i am beginner
Re: Help please -
FalconX - 09.06.2012
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.