Error while compiling .pwn file
#1

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
Reply
#2

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
Reply
#3

Now I get this:
http://pastebin.com/SV130GLa
Reply
#4

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.
Reply
#5

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
Reply
#6

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

You didn't answered Konstantinos's questions.
Reply
#7

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?
Reply
#8

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.
Reply
#9

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)