SA-MP Forums Archive
Error while compiling .pwn file - 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: Error while compiling .pwn file (/showthread.php?tid=514631)



Error while compiling .pwn file - alrocks360 - 22.05.2014

Title says it all. I get an error when I compile this .pwn file. All the includes are in the include folder in pawno.
http://pastebin.com/nzf5g84X


Re: Error while compiling .pwn file - Konstantinos - 22.05.2014

ShowPlayerDialog and IsPlayerNPC functions were added in 0.3a
Are you sure you don't use a_samp.inc file for an older version? You should update the server package to 0.3z


Re: Error while compiling .pwn file - alrocks360 - 22.05.2014

Now I get this:
http://pastebin.com/SV130GLa


Re: Error while compiling .pwn file - Konstantinos - 22.05.2014

Post lines 23-27 and the rest. One question though - are you trying to compile the script with the latest versions of mysql? If yes, then the mistake is that in mysql_query needs as first argument the connection handle and mysql_retrieve_row doesn't exist in those versions.


Re: Error while compiling .pwn file - alrocks360 - 22.05.2014

Here are lines 23-27
#undef MAX_VEHICLES
#define MAX_VEHICLES 2000 // Change this to your server's number of slots.
#undef MAX_PICKUPS 500
#define MAX_PICKUPS 2000 // Change this to your server's number of slots.
#define MAX_DRUGS 500


Re : Error while compiling .pwn file - S4t3K - 22.05.2014

The two first lines are useless : MAX_VEHICLES's value is 2000 by default.

You didn't answered Konstantinos's questions.


Re: Error while compiling .pwn file - Konstantinos - 22.05.2014

The error 038 is caused by this line:
pawn Код:
#undef MAX_PICKUPS 500
Remove the " 500" because it is wrong.

By the way, MAX_VEHICLES is already defined as 2000 so why you want to re-define it?


Re: Error while compiling .pwn file - alrocks360 - 22.05.2014

Well what should the max pickups be? Also, I don't know how I would answer your question as I don't quite understand what you mean.


Re: Error while compiling .pwn file - PinEvil - 22.05.2014

Update your server files, as the recent version is 0.3z and "IsPlayerNPC" functions were added around 0.3a.

https://sampwiki.blast.hk/wiki/Limits


Re: Error while compiling .pwn file - alrocks360 - 22.05.2014

Updated server files, Get this now:
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(23) : error 038: extra characters on line
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(23) : error 010: invalid function or declaration
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(12645) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(14130) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(14212) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(14314) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(15694) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(15783) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(15856) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(15930) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16020) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16127) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16194) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16250) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16302) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16386) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16469) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16552) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16634) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16724) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16814) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16897) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(16982) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(1705 : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(17127) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Mess around samp\filterscripts\cnr.pwn(17204) : error 035: argument type mismatch (argument 1)

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.