Defining MAX PLAYERS makes Pawno crash? - 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: Defining MAX PLAYERS makes Pawno crash? (
/showthread.php?tid=576078)
DELETE -
Hargrave - 31.05.2015
DELETE
Re: Defining MAX PLAYERS makes Pawno crash? -
Konstantinos - 31.05.2015
MAX_PLAYERS is defined in a_samp.inc which is a must to include in any script so I don't see how it would give you an undefined symbol error.
pawn Код:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 50
// rest of includes..
and the above is an example to re-define MAX_PLAYERS instead of using 1000 which is the default.
Re: Defining MAX PLAYERS makes Pawno crash? -
Hargrave - 31.05.2015
Yeah, but if I include a_samp, it also causes the same problem. It crashes.
I got a script that includes another script that has all the commands. But it seems like I have to compile it, eventhough it's only the .pwn that's required. Tried to add a new command, but it didn't work in-game so I thought I perhaps had to fix the errors in the commands .pwn file that I've. Just confusing.