Pawno Compiler Crash, 'Er Time.
#1

Why yes, I am trying to define vip for 0admin filterscript, how'd you know?
To get to the point, I added the define method for vip, it's below as well as the crash info.
Код:
#define VLevelCheck(%3)	    \
        do{\
			if(P_DATA[(%0)][VIP] < (%2)){\
			{\
			    if(S_DATA[TellPlayer])\
				{\
				    return SendClientMessage((%0), Color:ORAN, "SERVER:"W" You must be VIP in to use this command!");\
				}else return 0;\
			}\
		}\
		while(False)
Код:
Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	pawncc.exe
  Application Version:	3.2.3664.0
  Application Timestamp:	4655bfe0
  Fault Module Name:	PAWNC.dll
  Fault Module Version:	3.2.3664.0
  Fault Module Timestamp:	4655bfdf
  Exception Code:	c0000005
  Exception Offset:	00005087
  OS Version:	6.1.7600.2.0.0.256.1
  Locale ID:	1033
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
Reply
#2

You've posted wrong area, visit here: http://forum.sa-mp.com/forumdisplay.php?f=12
Since this is more of a coding problem, then server issue. Unless your issue is something new of a bug that crashes a server (which would not be possibly this late in 0.3c RC for something so small)
Reply
#3

Why do people try to put a whole function into a single define? Functions are there for a reason ... It's not going to be any faster if you create a define rather than a stock.
Reply
#4

Try updating your "SCCANF" ( However spelt ) , I had same problem, updated it and it started working fine..
Reply
#5

Quote:
Originally Posted by Tenshi
Посмотреть сообщение
You've posted wrong area, visit here: http://forum.sa-mp.com/forumdisplay.php?f=12
Since this is more of a coding problem, then server issue. Unless your issue is something new of a bug that crashes a server (which would not be possibly this late in 0.3c RC for something so small)
Quote:
Originally Posted by Vince
Посмотреть сообщение
Why do people try to put a whole function into a single define? Functions are there for a reason ... It's not going to be any faster if you create a define rather than a stock.
Quote:
Originally Posted by Brandon Javorsky
Посмотреть сообщение
Try updating your "SCCANF" ( However spelt ) , I had same problem, updated it and it started working fine..
Tenshi, thank you for informing me of my mistake.
Brandon, thank you for your suggestion.
Vince, go fuck yourself with cactus, I don't need anyone bashing me because someone else coded their FS poorly. I'll make my own damned administration filterscript. I cannot stress how useless these forums are, when all everyone does is basically tell everyone they're fucking retarded because they aren't the best god damned coder on the fucking world wide web.
Reply
#6

Quote:
Originally Posted by dj_william
Посмотреть сообщение
Tenshi, thank you for informing me of my mistake.
Brandon, thank you for your suggestion.
Vince, go fuck yourself with cactus, I don't need anyone bashing me because someone else coded their FS poorly. I'll make my own damned administration filterscript. I cannot stress how useless these forums are, when all everyone does is basically tell everyone they're fucking retarded because they aren't the best god damned coder on the fucking world wide web.
Quote:

Vince, go fuck yourself with cactus

Seriously ?, when you get half as good as Vince, then feel free to post, if you were a bit mature, you wouldn't bother replying to his post.
Reply
#7

Opinions are opinions, everyone including the OP is entitled to them. It does not matter how it was done, as long as it is valid and functional.

It is indeed the in-correct section of the forum so you know in the future.

I can't really help much with this, putting \ everywhere alone throws me off (must be some special case for the #define).
Reply
#8

Код:
#define VLevelCheck(%3)	    \
        do{\
			if(P_DATA[(%0)][VIP] < (%2)){\
			{\
			    if(S_DATA[TellPlayer])\
				{\
				    return SendClientMessage((%0), Color:ORAN, "SERVER:"W" You must be VIP in to use this command!");\
				}else return 0;\
			}\
		}\
		while(False)
VLevelCheck(%0,%1)

also if(P_DATA[(%0)][VIP] < (%2)){\ where is %1?
Reply
#9

it doesn't matter now, I stopped using 0admin. I get sick of it crashing all of the time, and the glitches, oh the glitches.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)