Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Arber on November 27, 2012, 09:58:14 pm

Title: Who can fix my errors!? - thanks
Post by: Arber on November 27, 2012, 09:58:14 pm
WHO CAN CONFIGURE MY SCRIPT, i cannot convert to .amx with pawn.exe because have 2 errors. Thank you

i didn't know where to upload and i uploaded the file to my page:
www.lajmeshqipb.altervista.org/mode.pwn
Title: Re: Who can fix my errors!? - thanks
Post by: sseebbyy on November 27, 2012, 10:26:39 pm
Just type here the errors and the lines where are detected these errors.

Don't ask us to fix your server, just type here the errors and we will tell you how to fix them.
Title: Re: Who can fix my errors!? - thanks
Post by: Arber on November 27, 2012, 11:55:04 pm
Look my errors:


D:\Program Files\Vice City\pawno\mode.pwn(219) : error 025: function heading differs from prototype
D:\Program Files\Vice City\pawno\mode.pwn(220) : error 021: symbol already defined: "OnPlayerRequestClass"
Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


2 Errors.
Title: Re: Who can fix my errors!? - thanks
Post by: sseebbyy on November 28, 2012, 01:00:58 am
Look my errors:


D:\Program Files\Vice City\pawno\mode.pwn(219) : error 025: function heading differs from prototype
D:\Program Files\Vice City\pawno\mode.pwn(220) : error 021: symbol already defined: "OnPlayerRequestClass"
Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


2 Errors.

For first error:  You have to give us the line 219 . (the script from line 219)

For the 2nd error: Are two "OnPlayerRequestClass" in your script. You have to unite them.

Title: Re: Who can fix my errors!? - thanks
Post by: MatheuS on November 28, 2012, 02:36:11 pm
delect line public OnPlayerRequestClass

type:

[pawn]public OnPlayerRequestClass(playerid, classid, skinid)
{
 return 1;
}
[/pawn]

you compile delect error's
Title: Re: Who can fix my errors!? - thanks
Post by: NeskWriter on November 28, 2012, 02:46:17 pm
Remove the 2nd OnPlayerRequestClass public on the 219th string
Title: Re: Who can fix my errors!? - thanks
Post by: Arber on November 28, 2012, 02:54:41 pm
yes, i have fix first error. Now is error 2 at line 219 look the photo:
(http://postimage.org/image/6y5bc4ycn/)
Title: Re: Who can fix my errors!? - thanks
Post by: Fuzzy168 on November 28, 2012, 03:49:41 pm
delect line public OnPlayerRequestClass

type:

[pawn]public OnPlayerRequestClass(playerid, classid, skinid)
{
 return 1;
}
[/pawn]

you compile delect error's
Bullshit!!

According to here (http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/OnPlayerRequestClass), OnPlayerRequestClass has only 2 parameters which is playerid and classid. skinid doesn't exist. That's why it's giving you the error.
Title: Re: Who can fix my errors!? - thanks
Post by: NeskWriter on November 28, 2012, 08:19:29 pm
Clear fully this public