SA-MP Forums Archive
2 Errors don't understand - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 Errors don't understand (/showthread.php?tid=214938)



2 Errors don't understand - ToPhrESH - 22.01.2011

Код:
C:\Users\Owner\Desktop\Pawno\pawno\include\random.inc(24) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Owner\Desktop\Pawno\pawno\include\random.inc(29) : error 010: invalid function or declaration
Line 29:
pawn Код:
enum Z_Info
{
    Float:z_minx,
    Float:z_miny,
    Float:z_maxx,
    Float:z_maxy,
    z_team,
    z_id
}
Line 24:
pawn Код:
new pilot;
pawn Код:
if(pickupid == pilot)
    {
        PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        SetPlayerSkin(playerid, 61);
        GameTextForPlayer(playerid, "~u~~g~]~r~Found ~b~Hidden ~w~Skin~g~]~u~", 5000, 6);
    }
Please help, I compiled one minute and it worked, i then closed, and opened back up again and these errors come up.


Re: 2 Errors don't understand - Mauzen - 22.01.2011

Quote:

expected token: "-string end-", but found "-identifier-"

This means there is a unclosed string (a missing ") in the line before 24, because the compiler found -identifier- instead of the closing ", identifier is the 'new'.

The other error probably comes with the first one, because the unclosed string mixes up the following code.
If you dont see a problem in line 23, post it here.


Re: 2 Errors don't understand - ExeC - 22.01.2011

EDIT: Nothing..


Re: 2 Errors don't understand - ToPhrESH - 22.01.2011

the line before 24 is

pawn Код:
new money1;
HELP ME PLEASE!


Re: 2 Errors don't understand - blackwave - 22.01.2011

Quote:
Originally Posted by ToPhrESH
Посмотреть сообщение
the line before 24 is

pawn Код:
new money1;
The first error happens when you make a new variable, while this one is on a define. Look that:
pawn Код:
C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\carsys.pwn(24) : error 001: expected token: "-string end-", but found "-identifier-"
pawn Код:
#define DB "lol.db"
Line 24:
pawn Код:
new DB:lol;
Means you have on a define, the variable "pilot"


Re: 2 Errors don't understand - Mauzen - 22.01.2011

Quote:
Originally Posted by ToPhrESH
Посмотреть сообщение
the line before 24 is

pawn Код:
new money1;
Hm, strange problem. I have no other ideas atm, except it might be a define problem like blackwave said.

#define money "abc"

or something.


Re: 2 Errors don't understand - ToPhrESH - 22.01.2011

Quote:
Originally Posted by blackwave
Посмотреть сообщение
The first error happens when you make a new variable, while this one is on a define. Look that:
pawn Код:
C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\carsys.pwn(24) : error 001: expected token: "-string end-", but found "-identifier-"
pawn Код:
#define DB "lol.db"
Line 24:
pawn Код:
new DB:lol;
Means you have on a define, the variable "pilot"
Nope. Checked all the defines... Still need help -.-


Re: 2 Errors don't understand - blackwave - 22.01.2011

Quote:
Originally Posted by ToPhrESH
Посмотреть сообщение
Nope. Checked all the defines... Still need help -.-
Well, that impossible lol. Look for all "pilot" variable. Also, should be there:

pawn Код:
pilot = CreatePickup(model,type,x,y,z); //



Re: 2 Errors don't understand - ToPhrESH - 22.01.2011

I'm willing to bet it's impossible.
Here is all pilot.
pawn Код:
new pilot;
pawn Код:
if(pickupid == pilot)
    {
        PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        SetPlayerSkin(playerid, 61);
        GameTextForPlayer(playerid, "~u~~g~]~r~Found ~b~Hidden ~w~Skin~g~]~u~", 5000, 6);
    }
pawn Код:
pilot = CreatePickup(1275, 23, 1954.17736816,-2188.46069336,13.24627781, -1);
I even used, EDIT >> Find and typed in the search box pilot. Then three results came up when I search and pressed F3 to find next. They are the ones above.


Re: 2 Errors don't understand - blackwave - 22.01.2011

but did you check at your script? it's on the INC random.inc. The single things I could say were these one, since other FS/GM doesn't affect.